I just want to set featured image of my post but don’t want to show it in my post.
How can I do that?
Detailed :
I want to post to show its thumbnail in main page but not to show it when we expend the post ie: Not to show that featured image in post when somebody open that post by clicking Read-More
Plugin will be great.
It sounds like you want the thumbnail on archives but not on single post displays, so if you are willing to edit the theme you can just wrap the thumbnail code in
if(!is_single())
. For example:You could also filter
post_thumbnail_html
but that is pretty wasteful as thethe_post_thumbnail
does a lot of work before that filter runs.You could use CSS code in your child themes style.css file to hide it:
Replace .wp-post-image with the name of your featured image/post thumbnail class your theme uses.