• 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 to change post date from published to updated?

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 to change post date from published to updated?

This topic is: resolved

Tagged: .post-info, entry-header, entry-meta, updated date

  • This topic has 4 replies, 3 voices, and was last updated 4 years, 8 months ago by mockuppsd.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • May 11, 2018 at 10:09 am #219774
    koksalcanberk
    Participant

    Hello,

    Which line of functions.php should I edit to display the last date updated instead of the date published?

    I use eleven40 pro theme.

    Thanks,

    May 11, 2018 at 10:25 am #219775
    Brad Dalton
    Participant

    Use the filter to change the shortcode


    Get Help – Book Consultation.

    May 11, 2018 at 10:36 am #219776
    koksalcanberk
    Participant

    I added this line:

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

    at the end of my functions.php but it did not work.

    May 11, 2018 at 11:10 am #219783
    koksalcanberk
    Participant

    Clicked again and saw that you updated your post! Solved! Thanks.

    May 12, 2018 at 12:38 am #219787
    mockuppsd
    Member

    in word press we can change directly from post side bar in admin.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘How to change post date from published to updated?’ is closed to new replies.

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 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