I have about 2000 posts that I load into a custom type and want each one to have a unique datestamp so that I can navigate by previous/next – I’ve found that if there are duplicate datestamps then WP’s navigation is random and unpredictable. I solved the plugin’s problem by running the following SQL commands:
set @x = ‘2014-09-01 00:00’;
set @s = 52981;
UPDATE wp_posts set post_date = DATE_ADD(@x,INTERVAL id-@s MINUTE),post_date_gmt = DATE_ADD(@x,INTERVAL id-@s MINUTE) where post_type
=’MyCustomPostType’;
SELECT id, post_date, post_date_gmt FROM wp_posts WHERE post_type
= ‘MyCustomPostType’ order by id;
@x is the datestamp I want for the first post and @s is the post id for the first post in my system – you should change both of these.
The UPDATE command changes both post_date and post_date_gmt to keep them in step. It uses the start datetime (@x) and increments it by the current post id minus the id of the first post (@s) so each post has a datestamp one minute later than the previous one. The final SELECT is just so I can see what’s happened.
I hope this is helpful, it’s a shame the plugin needs this extra step.