[Resolved] Post update date

Home Forums Support [Resolved] Post update date

Home Forums Support Post update date

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #2238323
    Philippe

    Hi,

    I’d like to have the last update date appear on my posts.

    I used the following css: add_filter( ‘generate_post_date_show_updated_only’, ‘__return_true’ );

    Nada

    Post original dates never showed on my website either (onehomeplanet.com)

    Thanks for your help.

    #2238341
    Leo
    Staff
    Customer Support
    #2238361
    Philippe

    Great, it works.

    I was assuming that the date would appear on the posts themselves, not just on the excerpts on the homepage. I can do without, though.

    Side question: I have always wondered if css code could go in php files and reversely. Can they? If not, what is the difference in functionality between the two?

    #2238415
    Leo
    Staff
    Customer Support

    I was assuming that the date would appear on the posts themselves, not just on the excerpts on the homepage. I can do without, though.

    Are they set to display for single posts in the customizer?
    https://docs.generatepress.com/article/blog-content-layout/#single

    Side question: I have always wondered if css code could go in php files and reversely. Can they? If not, what is the difference in functionality between the two?

    CSS and PHP are completely two different coding languages. They should be added separately:
    Adding PHP: https://docs.generatepress.com/article/adding-php/
    Adding CSS: https://docs.generatepress.com/article/adding-css/

    #2238465
    Philippe

    Are they set to display for single posts in the customizer?
    Yes

    #2238586
    Ying
    Staff
    Customer Support

    Can you link us to a post?

    #2238708
    Philippe
    #2238716
    Fernando
    Customer Support

    Hi Philippe,

    Thank you for sharing the link!

    I can’t seem to locate the HTML elements that should show the date when it is set to appear on Single Posts in the Customizer.

    To clarify once more, can you kindly check if “Display post date” is enabled in Appearance > Customize > Layout > Blog > Single as such: https://share.getcloudapp.com/BluG0bPb

    If it is, can you try clearing all caching mechanisms set in your website?

    Kindly let us know how it goes.

    #2238722
    Philippe

    I just emptied the cache and now the last update appears on single posts. All good!

    #2238725
    Fernando
    Customer Support

    Glad it’s working now Philippe!

    #2238774
    Philippe

    Thank you, Fernando!

    #2238817
    Fernando
    Customer Support

    You’re welcome Philippe!

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.