remove post title from sticky post? (3 posts)

  1. applesfaceman
    Posted 5 years ago #

    using a sticky post how can i remove the post title and post on zz by admin from only the sticky post, i would hope not to alter all sticky posts, that are created in the future.. is there a way to target one post to not have a post title, so i can also move the body content up further?

  2. keesiemeijer
    Posted 5 years ago #

    Use conditional tag is_sticky()
    something like this

    <?php if (!is_sticky()) : ?>
    <?php the_title(); ?>
    <?php endif; ?>
  3. applesfaceman
    Posted 5 years ago #

    hmm, could you tell me how this code here removes title from sticky post? and could you please tell me where this goes?
    thank you

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.