-
Notifications
You must be signed in to change notification settings - Fork 5
Scheduled Posts
Scheduled posts are posts with a future date. Normally these posts don't show up in the front of your site. The "Publish posts with future dates" checkbox allows you to have scheduled posts display in your site the same as published posts. If checked new scheduled posts will be automatically set to published instead of scheduled.
To publish existing scheduled posts use the method below.
To update existing scheduled posts with the status published
edit the scheduled posts with the bulk edit
feature.
1 — Select the scheduled posts
2 — Click Bulk Actions
, select Edit
and click Apply
3 — Set the status to published and click Update
4 — The scheduled posts should now be published.
Let's say you've checked the "Publish posts with future dates" checkbox in the Date Archives menu. By doing this posts with future dates will be set to publish
. To reschedule these posts back with a post status future
uncheck the checkbox (or deactivate this plugin). Now follow these steps.
1 — Select the published posts with future dates
2 — Click Bulk Actions
, select Edit
and click Apply
3 — Set the status to published
and click Update
. (Yes, you read that right, set it to published
)
4 — The published posts should now be rescheduled.
Don't publish scheduled posts, but show them in the date archives only. Here is an example to display scheduled posts in date archives for the post type 'events'. Use this in your (child) theme's functions.php file
add_filter( 'cptda_post_stati', 'add_future_status', 10 , 2 );
function add_future_status( $status, $post_type ) {
if ( 'events' === $post_type ) {
$status[] = 'future';
}
return $status;
}
Notice Single post pages for scheduled posts will be going to a 404. Make sure you don't link to them in your theme's date archive templates if you use the code above.