- This topic has 12 replies, 4 voices, and was last updated 4 years, 11 months ago by David.
-
AuthorPosts
-
May 13, 2019 at 11:46 am #898203Deep
Hi,
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.May 13, 2019 at 12:34 pm #898229LeoStaffCustomer SupportHi there,
So I assume you are using a special plugin or function for schedule updates?
May 14, 2019 at 5:54 am #898857DeepSorry I am not using any post scheduler plugin. I am simply using the WordPress post schedule function. Hope you got it.
May 15, 2019 at 10:21 am #900455DeepHi, I am still waiting for your solution. Thanks
May 15, 2019 at 10:22 am #900458LeoStaffCustomer SupportOops somehow we didn’t get a notification for the previous reply.
I’ve forwarded this to Tom π
May 15, 2019 at 3:52 pm #900773TomLead DeveloperLead DeveloperHi there,
That almost sounds like a WordPress bug. Can you try deactivating your other plugins to rule out a conflict?
May 16, 2019 at 9:36 am #901734DeepHi 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.
May 16, 2019 at 4:18 pm #902014TomLead DeveloperLead DeveloperI’ll see if I can reproduce the issue. I’ll get back to you ASAP π
May 20, 2019 at 7:17 am #905484DeepHi Tom,
Hope you are working on the problem. I would appreciate if you come up with an early solution in this regard.
ThanksMay 20, 2019 at 9:22 am #905630TomLead DeveloperLead DeveloperHi there,
It’s a long weekend here, so I’m away from the main (coding) computer. I’ll be back in the office tomorrow morning and will debug this fully π
Thanks!
May 21, 2019 at 1:03 pm #907140TomLead DeveloperLead DeveloperJust playing with this now.
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.
How are you viewing a post which is scheduled for a future date? Are you previewing it? If so, the function is likely doing the correct thing in showing you the date as it will be once you publish.
May 23, 2019 at 6:53 pm #909283DeepHi,
I haven’t got your point. See when I preview a post (that I scheduled for a future date) before publishing it shows the date of creating the post. Before publishing its ok.
But once the post is published, it should show the date of publishing rather than the date of creation of the post (it might be two weeks back from the date of publishing). Hope you would agree with me on this point.May 24, 2019 at 12:22 am #909392DavidStaffCustomer SupportHi there,
haven’t tested but found this which seems to be the same issue:
-
AuthorPosts
- You must be logged in to reply to this topic.