WordPress.org

Support

Support » How-To and Troubleshooting » Not recognising post types or stickies

Not recognising post types or stickies

  • So I have the following code:

    if(is_sticky()){
    	echo "I am a sticky";
    }elseif(has_post_format('aside')){
    	echo "I am an aside";
    }else{
    	echo "I am just content";
    }

    which resides in single.php and it it is obvious what it does. How ever going to a sticky or to a aside ONLY ever echos out “I am just content” when it shouldn’t.

    thoughts?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Not recognising post types or stickies’ is closed to new replies.
Skip to toolbar