Bulk date change for wordpress posts
category: Snippets
There was a time when a client contacted me and asked me if it possible to change the dates of his posts. Before half a year i created for him a registry for product specifications, using (what else) wordpress. So after about six months he ended up with about 200 posts/products. So it was a nightmare to break my working schedule and start changing his posts one by one. Thankfully his employees were adding these posts in specific dates so it was easy for me to use the following SQL code in phpMyAdmin.
The first date under post_date is the current and the other is the new date.
UPDATE wp_posts SET post_date = REPLACE ( post_date, '2008-01-30', '2009-01-30')
Leave a Reply
Read more articles...
BlogBuzzer
Blog Buzzer is a FREE easy to use tool that helps authors of blogs get their work noticed. Most blog entries are found by ot… read more
Geeks Are In
GeeksAre.In is a blog/magazine where i share with the world and my friends anything geeky and interesting i find online along with my thoughts.
techWALL
The best tech and technology news, developments and trends. Coverage includes hardware, software, internet and many more of the world of tech!
R.fm – The Finest Blend of Club Culture
R.fm is a gallery website by Gustav Bagge. The dark color scheme looks very stylish and surely adds something more to the overall picture. It’s a multicolumn theme that varies from two to four columns (2 for the post page, 4 for the home page).


Share on Facebook
Share on twitter
Subscribe to our RSS
