You can use in_cateogry function to check if the current post is in your special category. And if it is, you can then display the featured image. Something like:
if( in_category( 'YOUR CATEGORY ID OR SLUG', get_the_ID() ) ){
the_post_thumbnail();
}
Obviously replace ‘YOUR CATEGORY ID OR SLUG’ with proper value.
Related Posts:
- Limit function to specific post category
- Get attachments for posts that belongs to a specific category
- List all categories with featured image from post?
- Change the background of each post according to the category
- How to show category image if no featured image is set?
- Including categories in search results
- Count how many posts in category
- Custom Single Post By Category
- Post slugs and images cannot have same name?
- Convert custom fields to post categories
- Download external images if post is publish
- Count posts in category including child categories
- Query posts from current year
- Can I load posts via Ajax?
- How to wrap every image in a post with a div?
- Show One Category on Post
- how to grab first link in post… and of course call it
- Do I use custom post type or something else?
- What Defines What Category A Post Picks (if in multiple)
- Show all post titles
- Add Category name to Post Title (h1)
- Posts are not showing up on particular category
- WordPress Theory Lesson – Image Columns within posts with alignment?
- How to display related posts by subcategory and not parent category
- Category Template: Need to display different content on first page of archives
- Get image from post’s gallery
- Image Insert into posts and pages not working after 3.2.1 update
- How to display featured image without it appearing in post?
- Display post category in foreach loop with category link
- Extracting post categories
- creating front end image uploader that uploads images as posts
- How to limit posts by category
- Get user categories with most posts in it
- Get all images in post and comments like Twitter before post title
- How to list recent posts in a wp nav menu?
- Dynamic dependent Dropdown lists for categories, sub-categories and posts
- How to display two blog categories as separate sections on one page?
- why does wordpress ignore the post args?
- Thumbnail Image to go in the post aswell
- get posts from Custom Post Type & Category
- Get URL from all images in a post
- How to enable custom Shortcodes in Post Category Description? [duplicate]
- Sort by last word in title
- Image behind the post’s title
- How to call posts under a specific category on static front page?
- Give posts a particular template based on the assigned category
- Show more than 200 images in one post
- Hide thumbnail if there is a gallery on the post
- Image on rss feed on post
- Post-Archive like a page in a specific subdirectory
- select post preview image from nextgen gallery
- How to get the next and previous image title from attachment or gallery?
- Highlighting Current Category in the Archive and Feeds page
- Get current taxonomy and display query accordingly
- Geting error in post and category [closed]
- Display most recent posts in category with Twenty Ten theme widget
- Display a specific category in a focused area of my site
- Aligning images in the wp editor not working. How do i get this to work in custom theme?
- unable to write to the database while uploading images
- Does having category name in permalinks affect SEO when having a post in multiple categories?
- How to 301 redirect from url with post id to permalink with post name (slug)?
- Create/Set Category as Title of Post
- Post images are not displayed in media library
- Delete attached images from posts
- How to display related post from same category in single.php
- Schedule image post on download
- Save All Post Permalink From A Specific Category into a .txt file
- show image gallery in archives or category page
- Page with Category Returning 1
- get current index of post content in category page
- Get 5 most recent categories
- Dynamically load posts based on category
- Set featured image on creating new post
- Get Categories & Posts With Type Article
- Set multi posts random categories and tags
- Add new post only in assigned category
- Changing the Category for all posts of an Author
- Admin Post List Only Show One Category
- Next/Prev category post in same button
- Add category attribute to custom recent post shortcode
- Featured Images link to post parent
- Show category post with excerpt text
- Same sidebar in all posts as in the category
- How do I list categories and the common categories for posts beneath those categories?
- Latest Posts not in the right order
- Retrieve latest post by multiple categories with ID
- How to Include a common category in a custom Category Search
- How to display only one post on first category page and rest on next pages?
- How do I insert a custom field in a user submitted post?
- Viewing category won’t show up Custom post type posts
- Get attachment if matches a variable
- Show Title/Date/Excerpt of first post & only Title for rest in Query [duplicate]
- Listing category and its posts one by one
- Print out one of 2 post category [closed]
- How to get if category has posts?
- Show some texts in posts belonging to Specific category
- I have a blog and want to prompt the user to select a category they like and have that select a random blog post
- How to remove category and other tags from posts page
- Download button under all images WordPress
- Get the category of post from which category page it have been clicked