Site logo

Archived topic

Updated Post Date on Homepage for Dispatch theme

3 replies · Started by kunal on February 14, 2019

Viewing posts 1–4 of 4

Hi Guys, this is a quick question. I've updated my new theme (Dispatch) to include the "update date" for each post. I got php, and individual posts to change, but how do I get the dates on the homepage to reflect the updated post date (right now, it shows the original date the post was written).

For example, the post "A sample with comments" was originally written on August 22 2018, but the updated version is Feb 14 2018 (today), so I would want the date on the homepage to show the updated date.

Thanks
Kunal

Hi there,

try this CSS:

.wp-show-posts-entry-date {
    display: none;
}

.wp-show-posts-updated {
    display: block;
}

This is perfect! thanks for your help David!

Kunal

You're welcome. Great to see the Dispatch site being used :)

This archived topic is closed to new replies.