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
- Displaying the category name of a custom post type
- Show WordPress Custom Taxonomy Items Based On a Selected Item From Another Custom Taxonomy
- Exclude posts that only have the ‘Uncategorized’ category [duplicate]
- 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
- Use template of parent category for single post sub-categories
- loop not displaying posts on custom template page
- Including text at the end of every post
- custom single.php not working
- 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
- Remove custom posts that match taxonomy value
- Display page content AFTER a loop of posts
- disable column on post and user list
- Single post as homepage?
- Category Template: Need to display different content on first page of archives
- Change post_date to post_modified date on post template?
- Automatically Updating Publish Date Bug
- Get posts by name and taxonomy term
- 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?
- Using custom post template
- 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
- 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
- Genesis + Ajax + Jquery | Failling to call action
- Prepending %category% onto default posts fails
- get_adjacent_post by language
- Get Page ID of blog homepage
- Remove Custom Post Type Slug and add Custom Taxonomy to Permalink Structure?
- Send post id through ajax and get the post content back
- How to display posts via custom taxonomy terms using checkboxes?
- How to create a template for Pages?
- Loop parent terms {display posts} AND loop child terms {display posts}
- Hide a specific post from a page template
- relating business and products with custom taxonomy?
- Is there a query string for edit.php to show all posts that have no custom taxonomy terms?
- WordPress bulk category select when publishing post
- how to set social icons to product / post template (Auros theme)? [closed]
- wordpress posts template remove default template from menu
- 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
- Display a post via template
- Single post full screen template not inheriting WordPress role permission
- How to set a certain Custom Template to a Single Blog Post
- List all native posts in template page?
- Sidebar on single.php not showing up
- How to Featured content with images in home page?
- How to output all taxonomy links from a custom post type in a menu?
- Geting error in post and category [closed]
- How to display the post categories for each post inside the loop with custom format?
- How to allow WordPress to recognize a custom URL segment after a product URL and use a custom template?
- How do I change the template specifically for single posts?
- Customizing a new page used for blog posts with Avada theme
- Show post count in custom taxonomy page
- Create/Set Category as Title of Post
- Page with Category Returning 1
- Slug collision between page, taxonomy and custom post type
- How to Display Most View Post in the template file?
- Customizing URL slugs of Custom Post Type and Taxonomy make posts/pages 404
- Use special template for the first post in the loop
- single- and archive- templates not being applied to custom post types, not even after flushing permalinks
- How to get post count including nested categories
- Multiple Custom Post Type loop logic
- How to change post template via url?
- How to list all names and descriptions of a custom taxonomy
- how to remove entry meta from wordpress archive category and change its display
- How to display term in archive page?
- How to arrange different post categories in template
- Multiple loops on a Search result page?
- How to get all the terms of a post
- How can I change the look of a post as is displayed
- Special Query: Title, Terms, Content – %LIKE%
- Display the first post’s comments of category in comments.php template
- how to style an individual page in a category [duplicate]
- How to display a certain template element only for posts published within certain time range?
- Redirecting posts in WordPress to a specific page
- Creating / Editing a post from within site template
- WordPress “Posts Page” isn’t showing template dropdown
- How do I create a template page to show 3 blog posts?
- How to add a new page that will function as a separate blog/news article page
- excerpt in template for specific page
- Tag page that displays specific posts
- How to make ‘show_option_all’, that comes from wp_list_categoreis, to work with get_categories or with get_terms?
- How can I locate the single buddypress forum post template? [closed]