• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

How do I show Last updated Date for posts my Genesis theme?

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › How do I show Last updated Date for posts my Genesis theme?

This topic is: not resolved
  • This topic has 5 replies, 2 voices, and was last updated 7 years, 1 month ago by elysianWolf.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • October 6, 2018 at 4:31 pm #223576
    elysianWolf
    Participant

    What's the correct way to show the last updated date for my posts in Google searches? I found a couple articles online that stated I need to simply add the code (below) to my functions.php file. Is this correct. If so, how do i know it's working? Is it immediate?

    I added this code to my functions.php:

    add_filter( 'genesis_post_info', 'sp_post_info_filter' );
    function sp_post_info_filter($post_info) {
    if ( !is_page() ) {
    $post_info = '[post_modified_date] by [post_author_posts_link] [post_comments] [post_edit]';
    return $post_info;
    }}

    Thanks in advance

    October 7, 2018 at 5:03 am #223581
    Victor Font
    Moderator

    It's immediate in terms of displaying on your site if post_info is enabled.

    As for Google, you cannot manipulate what Google displays based on your time frame. You have to wait until they re-index your page, if ever.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    October 8, 2018 at 5:20 pm #223609
    elysianWolf
    Participant

    How do i enable "post_info"?

    I'm not a developer. I just took that code from another site that stated I needed to add it to my functions.php

    Is there anything more I need to do?

    Thanks for your response.

    Gio

    October 8, 2018 at 5:23 pm #223610
    elysianWolf
    Participant

    I've also read that you can have the latest post date show by adding this code (below) to simple edits, 'entry meta (above content)'

    Last updated on [post_modified_date] By [post_author_posts_link] [post_comments] [post_edit]

    Does this work as well? Does anybody know?

    Thanks,
    Gio

    October 12, 2018 at 3:05 pm #223711
    elysianWolf
    Participant

    Hello again,

    Just wondering how I enable post_info?

    Is there anything more I need to do other than add the text I shared in my original message.

    Thank-you,
    Gio

    October 13, 2018 at 12:43 pm #223723
    elysianWolf
    Participant

    Hi Victor,

    Not sure if you saw my replies or not. Hoping you can give me the last piece of the puzzle.

    How do I enable post_info?

    I've also read that you can have the latest post date show by adding this code (below) to simple edits, 'entry meta (above content)'

    Last updated on [post_modified_date] By [post_author_posts_link] [post_comments] [post_edit]

    Thanks in advance
    Gio

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble