Error: SHOW MODIFIED DATE

Posted in: Newsmag
Post count: 5

Hello dear development team,
I use Newsmag (http://www.hundenachrichten.de) and am actually quite happy with the theme. However, I noticed one issue that isn’t optimally resolved: SHOW MODIFIED DATE. Example error: On March 28, I plan a post for April 1. The publication date says: Published on April 1. Modified: March 28. That doesn’t seem right! “Modified” should show April 1, if at all (see ⇾ here). A better solution would be: On the day of publication, “Modified” should show nothing at all (the post hasn’t been modified). It would be great if you could choose when the modification date should be displayed in the theme settings: After 7, 14, 30 days, or Custom. It doesn’t look professional if, for example, you make a small change to a post a day or two later and it’s then displayed. It’s more interesting if you revise/update older articles, and then it’s displayed, thus attracting search engines’ attention to the article again. It would be nice if this bug could be fixed and the suggested option “SHOW MODIFIED DATE after xxx days/Custom” was added.
Best regards from Germany
Stefan

Post count: 20688

Hi,

While that may seem unusual, it is however working correctly. The modified date can be before the publish date if the post is scheduled. But I understand what you mean, and how having an option to control the modified date would he useful. I will add this on our list, but I can’t promise that will be added unfortunately.

I could provide a solution that you could use. It will make the modified date match the publish date, when scheduling posts. This is the code https://pastebin.com/8Vfp07wY and it can be entered in the theme functions file, or a child theme functions file, or loaded with a code plugin in the functions file. The code should make sure that the modified date matches the publish date. The modified date will continue to change if you actually modify the post after it was published.

You could test it for your next scheduled post. Add the code at the end of the theme functions file for now, just to test it. If it works correctly, and it should as I tested it as well, then a more permanent solution for loading it can be found, like a child theme or a plugin.

Let me know.

Thank you!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newsmag’ is closed to new topics and replies.