How to change wordpress published by date?

Community Forums Forums Design Tips and Tricks How to change wordpress published by date?

This topic is: not resolved

This topic contains 8 replies, has 4 voices, and was last updated by  Susan 1 year ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #48893

    razor9984
    Participant
    Post count: 28

    Hi,

    In wordpress how do I make it so that the date displayed is the last time I edited the article and not always just the date I published the article?

    Thanks

    #48896

    Summer
    Participant
    Post count: 956
    #48933

    razor9984
    Participant
    Post count: 28

    Ok thanks but it says I need to edit the index.php, single.php, and page.php files.

    Does this mean I need to update the parent theme? What happens when I update Genesis, how do I save my settings then?

    #48936

    braddalton
    Participant
    Post count: 8901

    Not best practice to edit your parent themes template files:

    This is the code i use in my child themes functions.php file:

    https://gist.github.com/braddalton/5846369


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #49030

    razor9984
    Participant
    Post count: 28

    Ok does this code make it so that the date displayed is the last time I edited the article?

    #49031

    razor9984
    Participant
    Post count: 28

    Hi Brad,

    Also, can I add this code anywhere in my functions.php file? Or do I need to edit existing code?

    Thanks man.

    #49123

    braddalton
    Participant
    Post count: 8901

    The code needs to be copied from the view raw link and pasted at the end of your child theme functions.php file.

    It uses the new loop hooks for Genesis 2.0 HTML 5 enabled child themes.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #49134

    razor9984
    Participant
    Post count: 28

    ok but what if I dont have genesis 2.0 yet, will this still work?

    • This reply was modified 1 year ago by  Susan. Reason: this post was set as private
    • This reply was modified 1 year ago by  Susan. Reason: this post was set as private
    #49593

    Susan
    Moderator
    Post count: 7991
    This reply has been marked as private.
Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.