WordPress.org

Ready to get started?Download WordPress

Forums

Time stamp on theme without one (2 posts)

  1. j9barber
    Member
    Posted 1 year ago #

    Hi,
    I'm using Brand New Day as my theme and noticed that it doesn't allow a time stamp to appear on my entries. I've tried to add one using the General Settings and creating a custom date/time, but the time stamp still won't appear.

    Obviously, I'm a total novice and have no clue what I'm doing, so any help is greatly appreciated!

    Thank you.

    Janine

  2. idesignd
    Member
    Posted 1 year ago #

    If you are trying to place the timestamp of your post, within the post. Complete the following:

    1) Include this within your functions.php file.

    // [date]
    function displaydate(){
    return date('l, F jS, Y');
    }
    add_shortcode('date', 'displaydate');
    // end date

    2) Include this shortcode where you would like it within the post.

    [date]

    Hope that helps!

Topic Closed

This topic has been closed to new replies.

About this Topic