WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Looking to add & display post date above post title (3 posts)

  1. C M C
    Member
    Posted 3 years ago #

    I just wanted to say sorry in advance, I wasn't sure where to put this question, so posted it twice.

    I'm using the Suffusion Theme, which is pretty good. The only problem is that when using one of the templates called "Magazine", there is a function that displays excerpts in a "Tile" formation.

    On the top you have the image, follow by the post title and then the excerpt. The one thing it doesn't show is the date of the post and I would like some help with that. If any one has any ideas, I have included the code that needs to be changed. If anyone can point me in the right direction and let me know what needs to be changed or removed.

    Here is the link: Image

    [Code moderated as per the Forum Rules. Please use the pastebin]

  2. krisjay
    Member
    Posted 3 years ago #

    The code you need to add is very simple, and uses several perimeters to define what you would like to display. It all depends on where you would like the date/time to show up. Above the picture, below/above the post title, with the content, etc...

    The basic use to grab the post date would be:

    <?php the_time() ?>

    To point you in the right direction, have a look Here. It's about the post meta data, and display uses.

  3. C M C
    Member
    Posted 3 years ago #

    Thanks for pointing me in the right direction!

Topic Closed

This topic has been closed to new replies.

About this Topic