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
- Sticky Posts exceed posts per page limit
- Show all sticky posts, WITH pagination
- How to display Section for certain time
- How to make “sticky” pages (and query by them)
- How to get featured post title & image using JSON API?
- Sticky posts on home page, search, tag and archives without plugin
- WordPress 3.1 – How does one add sticky post capabilities to post types
- Include Sticky Post in Page Posts Count?
- Automated mark posts as featured every day
- Randomly placed sticky custom posts complemented by blog posts
- 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]
- Find posts without featured image? [duplicate]
- How to get relative URL of medium sized featured image?
- Gutenberg editor get post featured image by id
- How to make post sticky in the admin page?
- Adding a ‘featured’ class to certain posts
- How to retrieve “sticky” post outside the “loop”?
- What is the best way mark entries as featured?
- How to add pagination to my code?
- I’d like to cycle through existing posts in a post type, showing one per day ordered by title, and starting over when the last is reached
- Sticky posts not working when a specific category is set
- Show Featured Post Only On The Homepage
- Include sticky posts on the static page front page
- Added Custom Post Type and the View Option Doesn’t Work
- Custom loops, sticky posts, and pagination nightmare
- How to get bbpress sticky topics
- Featured Posts Code – Repeated featured posts
- Exclude duplicated $sticky post from combined loop content
- Loop for sticky posts
- How can I override the post title when a post is set to sticky? [closed]
- Singleton Custom Field (Meta Box)
- Where is the sticky post option?
- Sticky option for custom post types without using custom fields or plugins
- Sticky Post from page 2 and on
- Get template part with CPT and Custom Taxonomy conditionals
- Show last 5 posts from featured category on query carousel slider with prev and next button
- Sticky posts don’t show up first in custom loop
- Make posts_per_page value the same on all pages
- Need to add a post’s featured image to a section on the frontpage
- WordPress Sticky Post Count “Fix” Breaking Pagecount by 72 pages!
- Featured images duplicating and replacing next image
- Display Specific Posts at Start of Loop
- Seach and categories not working when ignoring sticky posts in main loop
- Pin to Top Functionality using orderby custom field then event date
- How can i link my featured image to be clicked and the file will be downloaded
- How to display only sticky posts on category pages?
- WP Query with sticky posts and tax_query
- Show sticky blog post on homepage
- Show sticky post before other WP_Query
- Why I have this strange behavior when I try to exlude the featured post from posts visualization?
- Display thumbnail of child, parent and ancestor using featured thumbnails
- Title image is missing ( but is not the WP 3.5 issue )
- How to change text (date) in post base on the day
- Multiple loops on index page with sticky post and pagination
- Multiple loops with / without sticky posts and different post limits
- How can I display sticky posts at first in wp_query?
- Pagination not working only on Archive-Name.php using new WP_Query
- How to show sticky posts on all pages of the pagination, not just the first page?