It looks like you’re trying to use get_terms()
in the same way that you would use WP_Query()
which you can’t do.
'paged' => $per_page
This is not a valid argument to pass to get_terms()
Also each post type has a rewrite rule to allow for pagination e.g. /2/, however that’s not the same with terms, therefore WP is going to 404 it (it’s only displaying index.php because you don’t have a 404).
Unless you want to create your own pagination (using rewrite rules), the focus of the loop must be a post of some kind, not a term – so maybe it’s best to think if there’s a better way of doing this based around that.
Related Posts:
- Custom Taxonomy Endpoint Pagination using paginate_links()
- Custom Taxonomy not working with posts_per_page in new WP_query (pagination problem)
- get_query_var(‘paged’) always returns empty
- How to pass posts_per_page and paged params query vars to custom taxonomy archive urls?
- Custom Taxonomy terms with latest post ordered by date pagination issue
- Listing child terms of parent term
- Taxonomy page lead to 404 page on pagination
- Remove pagination from WooCommerce product categories on admin edit navigation menus
- Pagination on custom taxonomy
- How to create pagination for custom taxonomy in WordPress
- Taxonomy Pagination Rewrite
- problem in taxonomy-{taxonomy}.php pagination
- Sorting Custom Posts on Archive page with pagination
- Custom taxonomy pagination
- Problem with wordpress pagination
- How can I change the output display of my pagination?
- How can I get a paginated list of custom taxonomy tags with posts?
- pagination not working on custom-taxonomy template
- Keeping session instance of random display results over pagination breaks
- add pagination in wordpress page template
- How to pass posts_per_page and paged params query vars to custom taxonomy archive urls?
- Pagination for Custom Taxonomy
- pagination for list category posts ( Custom post type )
- Error 404 in Custom taxonomy with pagination
- query posts returns 10 records
- add_rewrite_rule pagination 404 error on page 4 and above
- Pagination links not working for custom taxonomy
- get_posts assigned to a specific custom taxonomy term, and not the term’s children
- How can I get only parent terms?
- How to add images to taxonomies?
- Read-only taxonomy (user can assign term but can’t create or edit existing terms)
- Can you add the visual editor to the description field for custom taxonomies?
- Adding Category/Tag/Taxonomy Support to Images/Media
- get_terms does not return any results for my custom taxonomy?
- Large taxonomy (2000+ terms), causing WordPress to hang
- How to display warning on post editor when trying to add new term to custom taxonomy?
- How do you remove a Category-style (hierarchical) taxonomy metabox?
- Is it possible to have a taxonomy archive that lists taxonomy terms?
- Check if current term is a child of another term
- Is there a way to import terms into WordPress?
- get_terms() doesn’t return empty terms even though hide_empty is false
- Custom metabox for menu administration page?
- Remove Custom Taxonomy Base
- Exclude Custom Taxonomies
- How to get the top most term (top ancestor) of a custom taxonomy child term?
- Get custom category name from ID
- Set download limit and expiry for WooCommerce downloadable products in specific categories
- Populating dropdown menu with hierarchical taxonomies
- How to order a list of taxonomy terms alphabetically?
- get_the_terms issue
- Reverse traversing taxonomy based on term_id
- Specifying a size when displaying an image associated with a taxonomy through ACF
- ‘wp’ action hook not firing in admin and login?
- How can marge these loop code?
- Display all posts for taxonomy term across multiple custom post types
- Getting Term ID from Term Name for WordPress Query
- Custom permalinks with hierarchical taxonomy – getting PHP warning
- Taxonomies on custom taxonomies
- Get list of taxonomies associated with Subscribers
- How to join result of different taxonomies?
- How to add Post Format Taxonomy Archive page in the menu?
- How to add custom label or texts in featured image
- wp_insert_term created and set for first once only
- Show all taxonomy’s terms’ posts having another taxonomy’s term in common
- Render P2P metabox per taxonomy term
- where is the 4th taxonomy terms? taxonomy terms is disaapearing in the loop
- Adding content to custom taxonomy category pages
- Display formatted list of taxonomy terms with last seperator different
- Are term IDs unique even between multiple custom taxonomies
- How to customize custom taxonomy url?
- What is the action hook that deletes a taxonomy term from the backend? And how to retireve the term id before deleting it?
- Display a colour of custom taxonomy on the page
- Add attribute taxonomy through code don’t appear in admin product page
- Search only custom taxonomies
- save custom term – hook create_term doesn’t work
- How to avoid foreach error WebDevStudio’s WDS_Taxonomy_Radio taxonomy metabox class?
- Custom taxonomy huge list not loading properly in select box
- Query Multiple Custom Taxonomies
- 2 custom post type paging in 1 custom taxonomy
- WPML taxonomies not translated
- WordPress REST API – get custom taxonomy category posts
- Pull data from MySQL and add it to terms
- Taxonomy and Page Slug Same
- Tracking the name of a custom taxonomy
- Is it possible to filter a taxonomy archive by other taxonomies that are on posts?
- Group posts in a category based on tags in custom taxonomy
- Custom Taxonomy Archive page is not showing when clicking on
- Trying to test out wp_set_object_terms, but not working
- How to display custom taxonomy
- Avoiding stripping of HTML in Custom Taxonomy Meta Field
- Advanced AND tax_query in sidebar with 2 taxonomies
- How to update WordPress custom SQL Select query for custom taxonomies so that syntax is correct?
- Create WordPress taxonomies based on theme settings
- Alternative for is_taxonomy() to workaround theme’s default sidebar
- Can I use get_term_children to show child terms if they exist and show something else if they don’t?
- Displaying the custom taxonomies side by side on the admin dashboard
- Head Code for Custom Taxonomy
- Adding new terms to custom taxonomy
- List posts grouped by children of a custom taxonomy
- Add taxonomy fields of posts into RSS feed