WordPress.org

Ready to get started?Download WordPress

Forums

Display the word "Latest" on the latest post's page (2 posts)

  1. getsteve
    Member
    Posted 6 years ago #

    How do I display the word "Latest" on the latest post's page?

  2. getsteve
    Member
    Posted 6 years ago #

    For example:

    <?php if (is_single(latest))
    {
    echo 'Latest';
    }
    ?>

    What would go between the brackets instead of (latest)?

    In other words how do you identify that a post is the current "latest" post, and if so display the word "Latest" on the page just above the post?

Topic Closed

This topic has been closed to new replies.

About this Topic