Skip Navigation

Ajax pagination broken on taxonomy View added to taxonomy archive

Resolved

Reported for: Toolset Views 2.6.4.2

Symptoms

There is an issue where AJAX pagination is broken when using a View listing taxonomies and adding it to a taxonomy archive template.

This issue happens when the following conditions are met:

  • You have a hierarchical taxonomy, e.g. for cars, which looks something like this:
    • Ford
      –Focus
      –Fiesta
      –Mondeo
      –Kuga
      VW
      –Golf
      –Polo
      –Passat
      etc…
  • You create a custom WordPress Archive for this car taxonomy, available at a URL such as site.com/car/ford.
  • You add a taxonomy View to this archive which displays all of the sub-terms, i.e. it should display “Focus”, “Fiesta”, “Mondeo”, “Kuga” etc.
  • So the View displays car taxonomy terms, and has a Query Filter for parent taxonomy where the parent is set by the archive where the View is displayed.
  • You add AJAX pagination, that manually updates via page reload.

The AJAX pagination is broken, the Query Filter for parent taxonomy term becomes ineffective and all terms are included.

Workaround

Comments are closed