The post won’t use those templates because those aren’t intended for posts. They’re intended for the archive pages for those terms/categories/tags.
What’s more, it doesn’t make sense for it to work that way as it introduces ambiguity. Case in point, if I have category-red.php
and category-blue.php
, which template gets loaded if I visit a post that’s in both red
and blue
categories?
Instead, take a look at the template hierarchy diagram, you’ll very likely need to implement a check in your posts template yourself. Also consider adding a single.php
, and post.php
template to your theme
Related Posts:
- Setting posts_per_page for taxonomy term template
- Custom post type and taxonomy page templates
- Get Posts Under Custom Taxonomy
- Post/Page Preview Template
- Different post sort order within different categories
- Displaying the category name of a custom post type
- Elegant way to include only published posts with get_objects_in_term()?
- How to get Images included in Post
- Show WordPress Custom Taxonomy Items Based On a Selected Item From Another Custom Taxonomy
- Exclude posts that only have the ‘Uncategorized’ category [duplicate]
- How are terms connected with posts in database?
- My ‘post attributes’ is missing from my WordPress install
- posts page – different lengths of excerpt
- Convert IPTC keywords to blog post tags
- Forcing oembeds to top of post
- Show Custom Taxonomy Categories, Listing of Posts, and Single Post via AJAX
- Importing data from spreadsheet into wordpress DB, along with custom taxonomies and their terms
- Accessing $post variable from template part
- how to show all post in my page-grid.php template page
- Use template of parent category for single post sub-categories
- loop not displaying posts on custom template page
- get_terms parent for current product only
- Including text at the end of every post
- custom single.php not working
- deleting terms programmatically
- Adding Multiple Values to a Post Meta Key
- How do I get the slug of a custom taxonomy category of a post?
- Adding variable for post title so post template can include auto-generated link to view on external website.com/{post title}
- How to display different single post template based on author?
- Post taxonomy from exif data
- Redirection to taxonomy posts list after post submit.
- How only display all post related to category
- Remove custom posts that match taxonomy value
- Using Custom Posts with Metaboxes and Drop-downs
- Is it possible to have two different previews of a post (ie. two templates for one post)?
- Does an action fire when adding a tag via the “Tags” meta box?
- How can I add a meta-box to the posts editor containing all items of a custom taxonomy as checkbox?
- Display page content AFTER a loop of posts
- Different template for posts of all subcategories of category
- disable column on post and user list
- Custom Post Templates
- Single post as homepage?
- Templating of a specific post ID
- Category Template: Need to display different content on first page of archives
- Change post_date to post_modified date on post template?
- What part of template to edit to remove category name from the top of posts?
- Avoid duplicate post from same Taxonomy
- Automatically Updating Publish Date Bug
- Get posts by name and taxonomy term
- How to display data in archive page?
- Set terms in a custom post
- Get posts of ONE taxonomy term of custom post type
- How can I pass the ID of a post to a page template by clicking a url?
- Pass data between pages
- Using custom post template
- Choose whether to automatically add a taxonomy with the same name as the post
- Display tag image in post using Taxonomy Images plugin index.php
- What is the filter or hook to add admin controls to posts on the front end?
- wp_get_object_terms returns only Uncategorized on first publish
- How to bulk-untag multiple posts?
- Force the “Choose from the most used tags” meta box section to always be expanded
- Posts list in custom taxonomy
- How to Restrict Previous & Next Post Link to Posts of Same Category?
- Switch to page template when using post permalink
- Get Posts Under Custom Taxonomy
- Genesis + Ajax + Jquery | Failling to call action
- Prepending %category% onto default posts fails
- get_adjacent_post by language
- Get Page ID of blog homepage
- Duplicate Custom Post Type and Taxonomy Slug
- Remove Custom Post Type Slug and add Custom Taxonomy to Permalink Structure?
- Send post id through ajax and get the post content back
- How can I setup a relationship using categories in WordPress?
- custom post template file not shown, instead all the time 404.php
- How to display posts via custom taxonomy terms using checkboxes?
- How can I hide tags on a child-category page, if that tag has not been used?
- 404 error on default post type and default taxonomy fronted page
- How to create new post content templates for my users?
- How to create a template for Pages?
- How do I stop the loop from repeating in my category template?
- How do I insert a post with custom post type and relate it to a custom taxonomy?
- posts not showing on index.php
- outputting posts’ taxonomies: cant get ‘get_the_taxonomies’ working
- Loop parent terms {display posts} AND loop child terms {display posts}
- Hide a specific post from a page template
- Tell WP to use a specific template file in posts
- relating business and products with custom taxonomy?
- How to make different custom post layouts?
- Is there a query string for edit.php to show all posts that have no custom taxonomy terms?
- Why won’t pagination work?
- Is it possible to give the user the chance to select between two single template files to use in a post?
- WordPress bulk category select when publishing post
- Create a custom posts page
- how to set social icons to product / post template (Auros theme)? [closed]
- How to identify and hide/remove an element from a WordPress page [closed]
- wordpress posts template remove default template from menu
- Force a specific template as default
- showing posts of an specific category in admin custom menu with style of admin posts section
- Give posts a particular template based on the assigned category
- Unable to differentiate between two categories under custom post type on single.php