Update WordPress Post Publish Date each time it is viewed!
To change Post published date each time it is viewed, we can use the the_post action hook that gets fired every time a post is set up in the global $post variable. Here’s an example code snippet that you can add to your theme’s functions.php file or a custom plugin: Changing the post timestamp each … Read more