Celebrating 5 Years! Get 25% off GP Premium with the discount code: CELEBRATING5

[Support request] Glitch in post updated date code

Home Forums Support Glitch in post updated date code

This topic contains 7 replies, has 3 voices, and was last updated by  Tom 2 days, 7 hours ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
  • #898203


    I have followed this article on your site https://docs.generatepress.com/article/generate_post_date_output/#only-show-updated-date to show the updated date for the posts on my site.
    Well, the code is working partly in my case. As soon as I updated the code in the functions.php file it was showing the updated date of the post. But I have an issue in this regard:
    After inserting the code, I noticed that the articles which I scheduled for a future date, on publishing the single post pages are displaying the date of preparing the post and not the publishing date.
    I think the code mentioned in the article above should display the date of publishing or the date of update whichever is later.
    Otherwise for example, if I schedule a post to be published after one week, on publishing it would display a date seven days back of publishing.
    Hope you understand my point. Thanks.


    Leo Customer Support

    Hi there,

    So I assume you are using a special plugin or function for schedule updates?



    Sorry I am not using any post scheduler plugin. I am simply using the WordPress post schedule function. Hope you got it.



    Hi, I am still waiting for your solution. Thanks


    Leo Customer Support

    Oops somehow we didn’t get a notification for the previous reply.

    I’ve forwarded this to Tom 🙂


    Tom Lead Developer

    Hi there,

    That almost sounds like a WordPress bug. Can you try deactivating your other plugins to rule out a conflict?



    Hi Tom,
    I tried deactivating all the plugins to check whether its a plugin conflict or not. I found that nothing was interfering and may the code misses some lines.
    So far as WordPress bug is concerned, I would rule out such a possibility. Because prior to using GeneratePress theme I was working on Divi theme where I made such code changes with the support of the technical team to show the post modified date or post publishing date whichever is later in the single post page.
    So I think you should have look at the code so that it behaves properly.

    See the screenshots
    http://prntscr.com/npgwf7 (it shows the publishing date in the WP backend)
    http://prntscr.com/npgy36 (it shows the date of creating the post i.e. May 12, 2019 and not the date of publishing i.e. May 13, 2019)

    Hope you will resolve the issue soon. Thanks.


    Tom Lead Developer

    I’ll see if I can reproduce the issue. I’ll get back to you ASAP 🙂

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.