WordPress.org

Forums

Iconic One
[resolved] How to add date to posts (4 posts)

  1. digitaldjinfo
    Member
    Posted 1 year ago #

    I want to add date to posts on my website. Any idea how I can do that ?

    http://www.digitaldjinfo.com/category/articles/

    I need the post dates displayed on that page above.

  2. Themonic
    Member
    Theme Author

    Posted 1 year ago #

    Hi DJ,
    To display meta( author and date ) on category pages:

    Open content.php

    go to line 25
    <?php if ( is_single() ) : //for date on single page ?>
    Replace the above line with
    <?php if ( is_single() || is_category() ) : //for date on single page ?>

    Let me know if it works.

  3. digitaldjinfo
    Member
    Posted 1 year ago #

    Yes sir, it worked perfect! Thank you for your help. Great theme by the way !

  4. daninovac
    Member
    Posted 1 year ago #

    How can I do exactly this not only for single posts, but for all the posts from home page??

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.