WordPress: Display Future Scheduled Posts

In Wordpress Tutorials by Laura0 Comments

Sometimes you might want to display a post in the future – especially if you are using a theme that has a timeline component. For example, you might want to show a future event date on your theme’s timeline and in order to do so you might need to future date your posts in wordpress.

These future dated posts will not display until said date. This feature does make a lot of sense and allows for you to schedule posts in the future, but like I said, you might have a need to display a future dated post on your front end. Read below to learn how!

Today I updated a site to display these posts so that they could display their future show on their timeline on the homepage.

Step 1: SFTP into your server and locate the /wp-includes/post.php file

Step 2: Navigate down to the section which displays register_post_status. This is the section that tells wordpress what to do with the various post statuses. There is “publish,” “future,” “draft,” and “pending.” There are also others like “private” and “trash.” Locate the line that says “register_post_status( ‘future’, array(” – for me it was line 118.

Step 3: Change ‘protected’ => true, to ‘public’ => true.

Thats it!

This is what the code should look like (click to enlarge):

[twocol_one]future_post_code_wp[/twocol_one] [twocol_one_last]future_post_code_wp2[/twocol_one_last]

 

Final result:

timeline_wp

Leave a Comment