WordPress update dates for all posts

I have a site I started but never officially launched. It has many posts and as time passes by they are getting old. Every once in a while I update with a new post and think of a recent launch, but I can’t with some posts dating back as far as 2 years..

Searched for plugins that might do this but none suited me. Finally I added a short code to my “functions.php” that runs only if a special parameter is passed in the URL and updates all the post dates to recent dates with intervals of 1 to 4 days between each.

Here is the first draft of the code just to give you a starting point:

Interested in my help with integration? Need additional customization?
Contact me here:

Leave a Reply

Your email address will not be published. Required fields are marked *