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
- Can’t get a custom template taxonomy page to display
- Display category posts grouped by taxonomy
- Custom Taxonomy Archive Page
- restrict_manage_posts not working in 3.3.1
- Including all terms in wordpress tax_query
- Different templates for parent and children categories/taxonomies
- Using tax_query creates a 1 = 0 or 1 = 1 in $wp_query->request
- Custom Taxonomy Template not respecting ‘include_children’ => ‘false’
- 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
- Ordering Posts with Custom Taxonomy Terms Array
- Include different loop templates in search query
- why do drafts return as part of wp_query?
- Dynamically tax_query terms
- 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
- pre_get_posts Tax Query not working for custom author page
- 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?
- ‘wp’ action hook not firing in admin and login?
- Taxonomy archive showing no results
- Get taxonomy parent using child slug (from merged taxonomies)
- Meta description – template code to get category description
- Manipulate WP Query using a custom post type and multiple tax_query taxonomies
- Checkbox onclick filtering on the same page
- WordPress Doesn’t Generate Taxonomy Archive
- Custom Taxonomy Not Working When added to WordPress Search
- get the taxonomies terms associated with users
- 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
- Sorting main query by custom taxonomy slug
- Set tax_query conditionally with new WP_Query
- Taxonomy Parent Name
- 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
- Why get_page_template() doesn’t show taxonomy template file name?
- 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
- Several taxonomy query (like filter)
- Taxonomy archive template that shows posts from more than one taxonomy
- WP_Query tax_query – Show results if child has parent X
- how to use tax_query to apply both terms or one if one is empty
- Template file renders on local install, not on web
- Get 1st parent category id from post
- How to get the term description in a taxonomy term archive query?
- Catch all taxonomy template
- making an index from custom taxonomies and tags of posts (not hierarchical taxonomy)
- Query Multiple Custom Taxonomies
- Get Posts Related to Category By category id or slug
- Display just the Post’s parent Category, not child
- Prioritise Pages over Taxonomy Term Root Archive, but not Taxonomy Term Child Archives
- how do you pull data from two taxonomies?
- Query by multiple custom taxonomies
- taxonomy – templates are not loading
- Get link for taxonomy to show top-level terms
- How to get a terms and posts associated with another term?
- WP Query : strange behaviour with multiple no-hierarchical tax
- WordPress search form and search result through ACF field in custom taxonomy
- Templates files for custom post type with custom tags
- Post not showing in my custom advanced search
- Creating a Taxonomy Page [duplicate]
- Query pages by child term
- Can I use multi (sub) levels of relation (AND | OR) on custom query?
- Tax Query not working
- WordPress hiding posts without content on custom taxonomy query. How to solve?
- Custom taxonomy – query returns an error
- How to use tax_query other than by slug or id or solve custom taxonomy tags conflicts with pre-existing tags?
- Tax query array terms display out of order
- Advanced AND tax_query in sidebar with 2 taxonomies
- How to limit posts to 1 from each term with tax_query?
- Can I use $query->set() (in a pre_get_posts() hook) with a custom taxonomy in WP 3?
- Can you orderby slug in a taxonomy archive page using WP_Query?
- wp_get_object_terms count on taxonomies within an category archive
- is_tax not working for custom taxonomy
- Complex Taxonomy scheme