Programatically Rescheduling Posts
-
I have a Bible reading site with various reading plans on it and reflections that have been written for the various daily readings in the plans. These are done as posts. The posts were originally scheduled and posted in accord with the reading plans being featured on the site.
I would like to programmatically cause these posts to be rescheduled and featured again without having to manually go in and do so. What fields in the posts needed to be update for this to happen. From what I could see I need to set the post_time to a new date and time, the post_time_gmt to the corresponding date and time, and also the post_status to future.
Anything else that needs to be done?
I am also hoping this will cause the plug I use to post to the various social media accounts to publicize the posts accordingly.
- The topic ‘Programatically Rescheduling Posts’ is closed to new replies.