Forums

[resolved] No Title on sticky posts. (5 posts)

  1. johnibanez
    Member
    Posted 3 years ago #

    Hi, On most of my new posts I include an image on top of it. Now, I dont want to show the Title of the post on sticky posts so that the Top part would only show the Image. Would that be possible? How?

    Thanks
    J. Ibanez

  2. MichaelH
    Volunteer
    Posted 3 years ago #

    The Conditional Tag is_sticky() should work for you:

    <?php
    if (is_sticky()) {
    //display image stuff here
    } else {
    the_title();
    }
    ?>
  3. johnibanez
    Member
    Posted 3 years ago #

    Thank you for the help. But im still completely stooped up, please pardon me for the ignorance. But I believe I was very unclear with my query.

    What I need for the sticky post to do is not to post the Title and just go directly to the post instead. You may want to check the URL. http://johnibanez.net

    Thank you very much!

    J. Ibanez

  4. MichaelH
    Volunteer
    Posted 3 years ago #

    Okay then...

    <?php
    if (is_sticky()) {
    the_content();
    } else {
    the_title();
    the_content;
    }
    ?>
  5. johnibanez
    Member
    Posted 3 years ago #

    Thank you mate!

    I'm kinda getting the hang of this!

    You may check it out here! http://johnibanez.net

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.