- This topic has 20 replies, 4 voices, and was last updated 5 months, 2 weeks ago by David.
January 8, 2020 at 12:02 am #1125307Hemant
I have added the CSS to show the Last Updated text and the Last modified date for the post.
But if the post is not modified yet then it should show Published date with the same text: Last Updated
Sample URL: https://spydrill.com/mspy-review/
As it is not modified hence nothing shows up. I want that Last Updated text should be shown with published date in case modified time is missing.
Thanks.January 8, 2020 at 5:07 am #1125482DavidStaffCustomer Support
this article provides the PHP snippet to output only the updated date if one exists, if it not it displays the published date:January 10, 2020 at 3:04 am #1127621Hemant
I added the code from the link provided by you.
It removed the link from the date but the published date is still not coming if modified date is not present.January 10, 2020 at 4:11 am #1127673DavidStaffCustomer SupportJanuary 10, 2020 at 8:36 pm #1128470Hemant
On doing that, two dates are coming for the posts that have both published and modified date.
In this case, only modified date must appear.
Sample URL: https://spydrill.com/mspy-vs-spyzie/
Also, we want the “Last Updated” text even when the published date is shown.
sAMPLE url: https://spydrill.com/mspy-review/January 11, 2020 at 1:21 am #1128558DavidStaffCustomer SupportJanuary 11, 2020 at 1:34 am #1128566Hemant
Thanks, it works. Now how to get the “Last Updated” text.January 11, 2020 at 2:05 am #1128582DavidStaffCustomer SupportJanuary 11, 2020 at 2:19 am #1128603Hemant
Thank you, David, for making it work for me!January 11, 2020 at 3:06 am #1128617DavidStaffCustomer SupportJanuary 16, 2020 at 10:28 pm #1134679Hemant
The article even modified shows the published date.
It is modified on 17th Jan but it shows published date 8th Jan.
Please help!January 17, 2020 at 4:30 am #1134898DavidStaffCustomer SupportJanuary 17, 2020 at 5:15 am #1134938Hemant
Please check the screenshot. I see only one date.January 17, 2020 at 11:24 am #1135452TomLead DeveloperLead DeveloperJanuary 17, 2020 at 9:08 pm #1135696Hemant
There were repeat lines in my code. Fixed it.
Sorry for bothering you!
- You must be logged in to reply to this topic.