If you take a look at Template Hierarchy category-news.php
would be archive template, that is for a list of multiple posts having specific category.
There is no such thing as template for individual post, having specific category, in native template hierarchy.
There are different ways to handle such, depending on your needs. Typical are:
- styling it via CSS (WP tends to output a lot of useful body classes to use)
- handling markup conditionally inside template file
- adding your own template file logic to native hierarchy
Related Posts:
- Keep featured content post in homepage with original order
- Removing any and all inline styles from the_content()
- Are post ID’s reliable?
- Adding additional data to WP_Post object
- using wp_update_post on save_post
- WordPress plugin to publish to multiple remote WordPress blogs
- Query posts from current year
- How do you get all the urls of images attached to a post?
- Get names of authors who have edited a post
- Display posts by tag on page
- How to batch update post content with custom post meta value
- Facebook sharing link is not showing a thumbnail of the images within the post?
- How to wrap every image in a post with a div?
- Order post by year DESC and month ASC
- Showing random content / pictures from earlier posts in a sticky post?
- Custom wp_trim_words() function not trimming right
- Populating a page with content from post custom fields
- How to create post in WP network using WP-CLI
- How can I hook into creating a new post and execute wp_die(), before the post is inserted into the database?
- Function to show random posts from a category
- How do I add a reusable block to a programmatically created post?
- how to programmatically change post tags
- wp query with dynamic taxonomies and terms?
- How can I hide the sidebar from a specific post?
- move blog posts from one wordpress to another
- How to run a function when post is edited or updated using publish post action?
- Getting a 404 error when clicking edit page
- Automatic value for custom fields for posts
- Display number of posts via adress bar?
- Display most recent post on homepage?
- Category Template: Need to display different content on first page of archives
- Get image from post’s gallery
- Get Posts that are in the current month or later
- WP Query to Get Array of Slugs
- get current post id inside hook
- Email entire post contents
- Display all posts that were published before full post on single.php
- How to make number of blog posts a custom field?
- check if wordpress is updating or publishing a post
- Sort WP posts by span value
- How can you change all past posts’ images to link to none instead of the image file?
- Apostrophe in a possessive appears as an open-single-smart-quote instead of a closed one
- Add Read More Tag to a post content (Single.php)
- How to compare two posts including their meta fields on a scalable base?
- Why does my site often display 404 on subpages?
- Move comments only from one WP installation to another
- Dynamic dependent Dropdown lists for categories, sub-categories and posts
- Only display sticky post or latest post in custom loop
- How to create a template for Pages?
- why there are so many posts whoes post_type is revision? will these records waste too much database space?
- Ignore latest two posts
- Grid post page on WordPress with Bootstrap, the_excerpt(); Problem
- Add a variable in a post
- Loop parent terms {display posts} AND loop child terms {display posts}
- On what hook can I get the queried object’s final state?
- Is it possible to add a shortcode below post title?
- Edit the post title from the frontend
- Automatically set post_parent value
- Image behind the post’s title
- Get the most recently modified post date of most recently modified post
- Only allow posts with a specific term to only be viewed by other authors with the same term in their post
- Modify this line to give alternate format date?
- How to limit author related post listing ?
- Show more than 200 images in one post
- Get all custom posts with a certain taxonomy
- The loop starting at a certain ID
- How to restore deleted post related with deleted users
- Multiple Blog Pages
- Closest post to a date
- Adding if statement into the_content()
- how to find the posts page
- Aligning images in the wp editor not working. How do i get this to work in custom theme?
- Showing Posts if non are found
- Filtering private Posts
- Show items from a DB in a Post
- Diffrent layout for posts [duplicate]
- How to display related post from same category in single.php
- How can I stop ‘in use’ message from intermittently blocking my wp_posts table?
- How to prevent WP from inserting empty posts
- Save All Post Permalink From A Specific Category into a .txt file
- How to Display Most View Post in the template file?
- display multiple posts and posts content on a single URL
- Using WP page password protection as defacto login
- get current index of post content in category page
- Show post excerpt
- How do I apply a wordpress function to something with no ID inside an archive page?
- Keep highlight on menu item with post pages
- Can’t get post_updated hook to work
- Add new post only in assigned category
- How to retrieve custom field values and save again as array
- Call image from post on index page?
- WP Query between posts custom fields [duplicate]
- Extra field in wp_post instead of postmeta
- Same sidebar in all posts as in the category
- Voting System, database connections?
- include other content type post ID not working
- Notify Author of the post if admin deletes his post and perform some function
- How to remove a date from wordpress post
- How to automatically convert a form with HTML link into post
- WordPress Post Updating is Not Working