I can see at least 3 ways to do that.
-
Adding a rewrite rule. See http://codex.wordpress.org/Rewrite_API for details:
add_rewrite_rule('^(country|person|interest)/?','index.php?tax=$matches[1]','top');
then use the
template_redirect
filter to load your template when thetax
variable is there:if (get_query_var('tax')) { # load the template here }
You’ll also need to add the
tax
query var to the list of filtered vars using thequery_vars
filter. -
Creating pages using specific template to list the terms
- Creating pages and use a shortcode to list the terms
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?
- How do I create a custom archive page depending on the custom taxonomy type?
- How to Rewrite Taxonomy URL to Include the Post Type as the Second Segment of the URL?
- Is there a template file to list all terms of a given custom taxonomy?
- How to use multiple archive templates for a taxonomy?
- Override Taxonomy Template
- Avoid taxonomy-%term%.php if more than one taxonomy
- WordPress sub taxonomy template
- how to access the $query variable inside taxonomy-xxx.php template file?
- Prioritise Pages over Taxonomy Term Root Archive, but not Taxonomy Term Child Archives
- Get link for taxonomy to show top-level terms
- Custom TaxonomyTemplate
- Templates files for custom post type with custom tags
- Creating a Taxonomy Page [duplicate]
- How to display custom taxonomy
- WordPress doesn’t respect the template hierarchy?
- Custom Taxonomy Template Variables Available?
- Template hierarchy html with taxonomy in 6.2
- 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
- How to pass posts_per_page and paged params query vars to custom taxonomy archive urls?
- Exclude Custom Taxonomies
- How to get the top most term (top ancestor) of a custom taxonomy child term?
- Get custom category name from ID
- Automatically assign taxonomy term if custom meta value exists
- Can I create custom taxonomy what dont creates slug pages?
- Dynamically tax_query terms
- User role permissions based on taxonomies
- WP Query with custom taxonomy
- Make tag cloud links consistent
- Insert form checkbox at bottom of taxonomy edit term page
- Show only 1 term of a current posts taxonomy
- Taxonomy archive showing no results
- Get posts by term slug only
- Changing taxonomy term by slug (wp_update_term)
- Custom Taxonomy Term Caching?
- Controlling Taxonomy Category listings to hide and unhide specifics
- Display related products based on 2 specific product attributes values in WooCommerce
- Add Custom Taxonomy for Blog Meta Info
- Include parent and child in category url
- Assign terms to new capability for all taxonomies
- Widget Logic use with Custom Taxonomy
- Rewrite Rules returning wrong data
- limit post by a taxonomy in the admin
- Output unique taxonomy terms of posts inside a loop
- How to display ACF taxonomy checkbox links on WooCommerce product category archive
- How to find taxonomy parent id from child taxonomy page?
- Removing “trashed” posts from post count in custom taxonomy terms?
- How to remove the search field in custom taxonomy ui?
- How to add hierarchical taxonomy with parent child relation to URL?
- How to show post for a particular term of custom taxonomy?
- Taxonomy archive template that shows posts from more than one taxonomy
- How to get the term description in a taxonomy term archive query?
- Chaining Taxonomy Queries
- How to list terms by first letter, as in A’s then B’s etc
- Drop-down filter doesn’t retrieve custom taxonomies
- Taxonomy hide not working
- Admin only taxonomies?
- new custom filed not showing in taxonomy
- Rewriting url for multiple Taxonomies and Custom Post Type
- Why is the category item count not updating after assigning a category?
- Add custom taxonomy for post using cron job
- Dropdown (with onChange) with custom taxonomies
- How to limit custom post category
- How to get a terms and posts associated with another term?
- How to use two same taxonomy in same post differently?
- How to show one post content in another post content which has same terms?
- Custom taxonomy name not being translated in post manager page
- Automatically Populate Post Taxonomy Data Based on Post Author Meta Data?
- Get Posts by tag from a custom taxonomy
- Can I use multi (sub) levels of relation (AND | OR) on custom query?
- Taxonomy to WordPress Permalinks of custom post type
- 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
- Rewrite URL for a specific taxonomy [duplicate]
- Hide empty categories on widget