taxonomy-{taxonomy}-{term}.php
– If the taxonomy were sometax, and taxonomy’s term were someterm WordPress would look for
taxonomy-sometax-someterm.php
. In the case of Post Formats, the
taxonomy is ‘post_format’ and the terms arepost-format-{format}
.
i.e.taxonomy-post_format-post-format-link.php
taxonomy-{taxonomy}.php
– If the taxonomy were sometax, WordPress would look fortaxonomy-sometax.php
taxonomy.php
You registered your taxonomy as product_categories
, so you should be using taxonomy-product_categories.php
to create a template for all terms in that particular taxonomy.
Use taxonomy-product_categories-furniture.php
to target only the one term referenced in your URL.
taxonomy.php
will be used for all taxonomies.
Related Posts:
- How can I set up a category “overview” page?
- How to display custom taxonomy
- Custom Taxonomy Template Variables Available?
- Taxonomy Templates… by hierarchical level?
- 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?
- WordPress Doesn’t Generate Taxonomy Archive
- How to use multiple archive templates for a taxonomy?
- Avoid taxonomy-%term%.php if more than one taxonomy
- Why get_page_template() doesn’t show taxonomy template file name?
- 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
- Single taxonomy for different custom post types
- How to get a terms and posts associated with another term?
- Templates files for custom post type with custom tags
- Creating a Taxonomy Page [duplicate]
- WordPress doesn’t respect the template hierarchy?
- is_tax not working for custom taxonomy
- How to use taxonomies on attachments with the new Media Library?
- How to display custom taxonomies in posts?
- How to display a listing template of a certain taxonomy?
- Hook to process a new taxonomy tag before it is created?
- Custom taxonomy on permalink
- How do I filter posts by taxomony using AJAX
- Multiple users – only allow them to manage their own terms for custom taxonomy when logged in
- How to return a list of custom taxonomy terms via the Gutenberg getEntityRecords method
- wp_options table value
- Custom Taxonomy Only Showing Top Level Terms in Admin?
- Get current term’s ID
- How to modify default taxonomy field to a single text field?
- How to set hierarchical terms to a post using wp_set_object_terms
- How do I display a tag cloud with both post tags AND a custom taxonomy?
- How to link categories to custom taxonomy terms?
- List taxonomy / category count showing list published posts only
- Using a different template per Custom Taxonomies for single term archive pages
- Taxonomy landing pages
- Save Filter for Taxonomies
- Create Child Taxonomies
- Woocommerce custom taxonomies page
- Allow only 1 instance of each term in each custom taxonomy
- Generic taxonomy-term template page
- get_terms: determine if taxonomy term has children
- Set a taxonomy as private
- “show option all” on list categories doesn’t display taxonomy
- Current category link filter
- Wrapping result of the_terms in a span with a class of the term name
- How do I taxonomy terms based on terms they are used alongside?
- How can I populate a select element with terms from a custom taxonomy and filter post results?
- How do I list the pages of a custom taxonomy?
- What is faster: custom taxonomy or serialized post-meta for db retrieval? (over 60,000 posts)
- Get taxonomy based on another taxonomy slug
- Why does a new taxonomy term get created when I assign an existing term to a post?
- Add Image Uploader In Admin Panel
- Tell the difference between a term and page when they have the same ID
- Different single page templates for taxonomies
- Getting associated taxonomies
- Custom Taxonomy Query
- Taxonomy Parent Name
- Returning One custom taxonomy term name
- Make child taxonomy categories use a set template
- Proper way to update the slug of a taxonomy using register_taxonomy? [duplicate]
- Displaying Custom Taxonomy without a hyperlink
- My custom taxonomy page is leading in 404 page
- Show template part if part of term
- Corrupted nav-menu?
- Remove taxonomy widget from “PAGE” post
- List Top 5 taxonomy terms based on number of post
- Get list of taxonomies associated with users
- Register `product_cat` taxonomy for default post post type
- Taxonomy.php how to show post only in current taxonomy with wp_query?
- Don’t display taxonomy if empty
- Include get_term_link inside search
- Trash Bin for Categories?
- display taxonomy terms with link
- Custom field with terms from another taxonomy programmatically
- Taxonomies and subtaxonomies relations
- Retrieve the child terms by having the parent’s information
- Can I get thumbnail of taxonomy?
- How can I rewrite a custom taxonomy archive slug
- Custom TaxonomyTemplate
- Why get_terms() behaves strangely when being called in admin (for use in meta box)?
- qtranslate-x problem with custom term description
- Display taxonomy posts
- Add image to taxonomy and output to homepage
- Looking for suggestions on creating simple database (Help!!)
- Child Pages and Custom Taxonomies
- Custom taxonomy – query returns an error
- How to perform a search inside a specific taxonomy category
- Sorting Custom Taxonomy in ASC/DESC order?
- How can i set post_per_page in my taxonamy?
- Exclude 2 in 3 terms of A Taxonomy from all Archives
- Get Posts with matching lowest taxonomies
- Loop custom post type by taxonomy (Category)
- Can you orderby slug in a taxonomy archive page using WP_Query?
- Any way to make custom taxonomy field searchable?
- query posts returns 10 records
- Custom Search only for my Custom Taxonomy Page – data
- Remove Tag Cloud Words from Custom Taxonomy
- Add custom display condition to Elementor Theme Builder for custom taxonomy children, grandchildren, and great-grandchildren