Is the my_pagination()
call within the same file as your $query
declaration?
If not, you need to put global $query;
at the top of your template file where my_pagination()
is being called.
If this doesn’t solve it, please give some more information/code examples.
Related Posts:
- Taxonomy Templates… by hierarchical level?
- How can I set up a category “overview” page?
- Which template name to use for taxonomies but not their terms?
- Custom taxonomy query not working with switch_to_blog
- How do I create a custom archive page depending on the custom taxonomy type?
- Override Taxonomy Template
- Avoid taxonomy-%term%.php if more than one taxonomy
- How to display custom taxonomy
- WordPress doesn’t respect the template hierarchy?
- How to update WordPress custom SQL Select query for custom taxonomies so that syntax is correct?
- Custom Taxonomy Template Variables Available?
- “tax_query” parameter not working with WP_Query
- Retrieve posts by term id custom query
- Can’t get a custom template taxonomy page to display
- Display category posts grouped by taxonomy
- Custom Taxonomy and Tax_Query
- Custom Taxonomy Archive Page
- pre_get_posts with tax_query causes empty result
- restrict_manage_posts not working in 3.3.1
- Including all terms in wordpress tax_query
- How to display a listing template of a certain taxonomy?
- How to use wp_terms_checklist() on front end
- Different templates for parent and children categories/taxonomies
- Using tax_query creates a 1 = 0 or 1 = 1 in $wp_query->request
- Custom taxonomies, with custom rewrites/slug, AND loading a taxonomy archive template from a plugin
- Custom Taxonomy Template not respecting ‘include_children’ => ‘false’
- search query within custom taxonomy term, post title and meta field
- Custom Post Type with Nested Taxonomy and Template Files
- Filter all queries with a specific taxonomy
- wp_query orderby title and meta key value (WP3.1)
- On Taxonomy Template page, want to add Post_Type
- Looping Through Custom Tax Terms and Displaying All Posts For Each
- tax_query not working on main query
- Make Custom Taxonomy Category Use Parent Template
- Ordering Posts with Custom Taxonomy Terms Array
- Include different loop templates in search query
- Custom taxonomy template not working
- List taxonomy / category count showing list published posts only
- Using a different template per Custom Taxonomies for single term archive pages
- Trying to manage templates on a blog with lots of custom taxonomies
- Taxonomy landing pages
- why do drafts return as part of wp_query?
- Dynamically tax_query terms
- Woocommerce custom taxonomies page
- Taxonomy.php issue with search and filters
- How to List Parent Term Links for Custom Taxonomy With & Without Children?
- How to output content based on same custom taxonomy?
- Generic taxonomy-term template page
- How do I sort posts by custom taxonomy?
- pre_get_posts Tax Query not working for custom author page
- Recreating the hierarchy of taxonomies for a dropdown form menu?
- 404 for a custom taxonomy?
- Get pages only with a specific taxonomy
- How to add autocomplete to custom taxonomy for CPT
- $wpdb query a post type within a specific taxonomy term while ordering posts by custom meta value?
- Why is my taxonomy template not shown?
- ‘wp’ action hook not firing in admin and login?
- Taxonomy archive showing no results
- Print terms with taxonomy and metabox value
- Get taxonomy parent using child slug (from merged taxonomies)
- Meta description – template code to get category description
- Create and set templates for custom taxonomies
- Pagination on custom taxonomy
- How to have two different versions of a tag/category/taxonomy archive page?
- Manipulate WP Query using a custom post type and multiple tax_query taxonomies
- Checkbox onclick filtering on the same page
- How to Rewrite Taxonomy URL to Include the Post Type as the Second Segment of the URL?
- Retrieve Custom Taxonomies according to posts selected
- WordPress Doesn’t Generate Taxonomy Archive
- Custom Taxonomy Not Working When added to WordPress Search
- A way to query custom taxonomies by name
- Is there a template file to list all terms of a given custom taxonomy?
- get the taxonomies terms associated with users
- Different single page templates for taxonomies
- Categories overview that links to page displaying posts
- How to use multiple archive templates for a taxonomy?
- Hiding taxonomies with no children WP_Query & tax_query
- Rewrite Rules returning wrong data
- Sorting main query by custom taxonomy slug
- WordPress Custom post query sorting does not work
- List related terms + taxonomies
- Set tax_query conditionally with new WP_Query
- Taxonomy Parent Name
- Search Query for Multiple Terms In Same Taxonomy
- tax_query not working
- Returning One custom taxonomy term name
- Make child taxonomy categories use a set template
- Exclude taxonomy term from all loops, but having it on widget
- How can I make front page to display custom taxonomy page?
- Why get_page_template() doesn’t show taxonomy template file name?
- How to do a particular wp_query taxonomy search
- tax_query: Don’t show posts with parent term when they have a corresponding child term applied
- Create alphabetical Pagination for custom taxonomy?
- pagination not working on custom-taxonomy template
- Custom arguments in WP_Query
- Get list of taxonomies associated with users
- WordPress sub taxonomy template
- query_posts that have custom taxonomy and limiting what shows based on the taxonomy
- How to add custom content to custom taxonomy
- Several taxonomy query (like filter)