You can use the conditional tag, is_sticky()
to check whether or not a specific post is a sticky post or not.
You can try the following inside your loop
if( is_sticky() ) {
//Display your desired image
}
Related Posts:
- Add a single featured post to all pages?
- Front page should display only one category of posts including sticky post with custom featured post box
- Exclude sticky post from main query?
- Show Sticky Posts in Category Archive
- Set sticky posts schedule (Automatic)
- Display only the most recent sticky post, display other posts in chronological order
- Include sticky posts in ‘Blog pages show at most’ X number of posts?
- Exclude expired sticky posts
- Exclude Sticky posts from Main Query break Pagination
- How to remove sticky post capability for a specific user role?
- ignore_sticky_posts in WordPress 3.0.3?
- Exclude Current and Sticky Post
- Make sticky post on save
- How to display only feautured/sticky listings on the homepage
- Pin a post to the top of a page, other than the home page
- Why WordPress CMS uses an array in wp_options instead of a field for Sticky posts?
- ignore_sticky_posts not working with word press version 3.9.1
- How to automate featured posts number? [duplicate]
- How to modify query on category pages to show only sticky posts?
- Make posts non-sticky
- Check if parent post is sticky on attachment page?
- How to check a post is sticky or not yet?
- Custom query: how to get the sticky posts first?
- I would like to change the sticky posts label “Featured” to something else
- How to display sticky post with custom html
- Update a post to remove sticky option
- I do not want my front page sticky post to show up in a category
- How to display a sticky post inside a div?
- WooThemes Mini Features – modify query_posts to display only sticky_posts
- Exclude Sticky Posts as everyone!
- Don’t move sticky posts to the first page
- Latest Sticky Posts with Grid Thumbnails for static front page
- Remove old sticky post on publish
- Limit Number of Sticky Posts to Show
- get_option(‘sticky_posts’) returns stickies that are in trash
- Display latest sticky post or display nothing
- Create thumbs only when a post is sticky or any other way?
- How can I display only sticky posts from a parent category on the homepage?
- Images for sticky posts
- Can I exclude a post by meta key using pre_get_posts function?
- Sticky Posts exceed posts per page limit
- Display featured products through custom loop in woocommerce on template page
- Keep featured content post in homepage with original order
- why ignore_sticky_posts in sticky post query
- How to add “Stick this post to the front page” to front end?
- Code to make a post sticky
- WP_Query: Why is sticky post not first item in loop?
- Query *only* sticky posts
- Is “Featured Content” in Twenty Fourteen done with a plugin, or is it native in WP4.0?
- Show all sticky posts, WITH pagination
- Sticky Posts & Posts Per Page [closed]
- Ensuring sticky posts are retrieved first (without using two queries)?
- Highlight a Featured Post?
- How to display Section for certain time
- How to make my front page display only the most recent sticky post, plus usual widgets?
- Limiting query_posts to 1, regardless of sticky post?
- How to make “sticky” pages (and query by them)
- How do I show sticky posts on a static front page that also contains content?
- How to get featured post title & image using JSON API?
- Using categories & “stickyness” together
- Sticky posts on home page, search, tag and archives without plugin
- Is there a hook / action that is triggered when adding or removing a post thumbnail?
- How to retrieve sticky post in raw sql?
- WordPress 3.1 – How does one add sticky post capabilities to post types
- XMLRPC and Underscored custom fields
- Featured Image Inherited from Parent Page
- Disable sticky posts feature
- Three different post types on homepage
- Apply styling only to first page sticky posts
- Include Sticky Post in Page Posts Count?
- featuring old articles without messing up with the archive
- wp_query for the first sticky, then display the rest of the posts excluding the first sticky
- Adding Sticky functionality to Custom Post Type Archives
- Schedule Sticky Posts
- How to make all posts in a category sticky?
- Exclude most recent posts from specific category in wp_query()
- Display All Sticky Post Before Regular Post
- Sticky Posts Not Sticking to Top of Category Archive
- How to change featured content to a different tag in WordPress Twenty Fourteen?
- All sticky posts are returned in custom query
- Automated mark posts as featured every day
- Randomly placed sticky custom posts complemented by blog posts
- how to make custom posts sticky? [duplicate]
- Get the size (size in Kb or MB) of an featured image?
- Get sticky post from category?
- Broken pagination, need help figuring out why!
- How to make all posts in a category “unsticky”?
- Display featured products through custom loop in WooCommerce 3 [closed]
- “Sticky” posts for each category (archive.php)
- Find posts without featured image? [duplicate]
- How to get relative URL of medium sized featured image?
- How to set the width and height rule for featured image
- Include Sticky Posts in Page Post Count for custom query
- Query sticky posts with thumbnails
- How to use custom fields to enable sticky posts on custom post types?
- Include a specific post to the query_posts and remove it if it is already in the returned list
- Sticky Post default functionality with WP_Query is ignored when using AJAX
- Display all custom post type posts and order them by an optional meta_key
- Excluding Sticky Posts from The Loop and from WP_Query() in WordPress?
- Gutenberg editor get post featured image by id