Question

I know that posts that are sticky show on top but I want to add an image to show that is featured is there any code I could use

Was it helpful?

Solution

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

}
Licensed under: CC-BY-SA with attribution
Not affiliated with wordpress.stackexchange
scroll top