WordPress.org

Ready to get started?Download WordPress

Forums

remove post title from sticky post? (3 posts)

  1. applesfaceman
    Member
    Posted 3 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?
    thanks!

  2. keesiemeijer
    moderator
    Posted 3 years ago #

    Use conditional tag is_sticky()
    something like this

    <?php if (!is_sticky()) : ?>
    <?php the_title(); ?>
    <?php endif; ?>
  3. applesfaceman
    Member
    Posted 3 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

Tags

No tags yet.