• kpwalker

    (@kpwalker)


    Currently on the menu page of my blog I have a ‘last updated date’. This just shows the date the blog was last updated – so effectively the date of the last post.

    I update this date manually in my themes header right now. I’m looking for a way to automate this – is there something I can put in my functions file and a little bit of php to insert to do this?

    Thanks!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    If you use the function wp_get_recent_posts(), pulling (1) just one post and (2) only ‘published’, you’ll get the post object for the most recent post. You can then get the last modification date for that post and echo it as your “last update” date.

Viewing 1 replies (of 1 total)
  • The topic ‘Adding last updated date for entire blog’ is closed to new replies.