Recently, some of you asked me how to list scheduled future posts in WordPress. Showing future posts has the potential to get people to subscribe to your blog. Here’s how you can display upcoming posts on your WordPress widget.
Contents
What are scheduled or upcoming posts in WordPress?
If you have been blogging for a while or are a professional blogger. You may find that publishing posts at a certain time get more views. If you’re new to blogging and don’t know what time period you get the most visitors, you should use Google Analytics.
The point is that you can’t waste time waiting to post at the right time. That’s why WordPress has a built-in scheduling feature. It allows you to list future posts to make your posting more convenient.

Using calendar creation, you can focus on publishing and managing an effective posting schedule.
Let’s take a look at 2 ways to display scheduled posts in WordPress and get more views in the future.
Method 1: Show scheduled posts using the plugin.
First you install and activate the SOUP – Show off Upcoming Posts plugin . Check out our step-by-step guide on how to install a WordPress plugin .
After activation, you need to go to Appearance >> Widgets section . You will find the ‘Upcoming Posts’ widget in the list of available widgets. Just add a widget to your widget where you display scheduled posts.

Widget settings allow you to choose how many scheduled posts you want to display. You can also display the date next to them, a link to your RSS feed. Or link to a page where users can sign up for an email list. Click the save button to save the widget settings. You can now visit the website to see the extension in action.

Method 2: Show scheduled posts or future posts manually.
Add this code to the functions.php file in your website’s theme or child theme.
function hocwp_upcoming_posts() {
$the_query = new WP_Query(array(
'post_status' => 'future',
'posts_per_page' => 3,
'orderby' => 'date',
'order' => 'ASC'
));
if ( $the_query->have_posts() ) {
while ( $the_query->have_posts() ) {
$the_query->the_post();
$output .= get_the_title() .' ('. get_the_time('d-M-Y') . ')';
}
} else {
$output .= 'No posts planned yet.';
}
wp_reset_postdata();
return $output;
}
add_shortcode('upcoming_posts', 'hocwp_upcoming_posts');
<div><span>1</span><span>2</span><span>3</span><span>4</span><span>5</span><span>6</span><span>7</span><span>8</span><span>9</span><span>10</span><span>11</span><span>12</span><span>13</span><span>14</span><span>15</span><span>16</span><span>17</span><span>18</span><span>19</span></div>
You can then go to Appearance >> Widgets section . Add a text widget to your sidebar and add this code [upcoming_post] inside the widget. Click the save button to save your widget settings.

You can now visit the website to view your scheduled posts. You can use this shortcode in a post, page or template in your child theme.
Epilogue
I hope I helped you understand how to display future posts in WordPress.
If you find it interesting, you can follow the WordPress basics section to know more new knowledge.
Follow fanpage to receive the latest posts: Group

