Try this:
$my_query = new WP_Query(array(
'post_status' => 'future',
'order' => 'DESC',
'posts_per_page' => 1,
));
while ($my_query->have_posts()) {
$my_query->the_post();
the_date();
echo ' - ';
the_title();
}
wp_reset_postdata();
or this: http://wordpress.org/extend/plugins/show-future-posts-on-single-post/
Related Posts:
- Hook for post and page load
- Change permalinks for posts but not for custom post types
- Is it proper to create a page just to generate a listing page (eg. for a custom post type)
- Custom Posts on Different Pages
- Display “Post 2 of 4” on single post page?
- Multiple Content Block
- How do I create an archive page for standard posts?
- Update content of multiple pages/posts at once?
- Making pages also serve as taxonomies? Or give full pages to taxonomies?
- Remove parent from custom post type
- Trying to edit the single page from a Custom Post
- How i can add ‘N’ page of ‘N’ pages under posts loop?
- Display only one post each WEEK
- JS innerhtml changing style when using AJAX
- How to change the post type a theme shows by default?
- No Permission to add new Page, Post or CPT with Admin role
- Including link to custom post type in ‘wp_list_pages’ function
- Multiple pages per post (not pagination)
- Can I change my post type to anything and my site still work?
- Display an authors post on a single page only when they are logged in
- WP_Query with custom post type ID
- How to set the mainpage of a custom post type?
- Render a Post or Page using the correct file
- Am I mixing up the concept of posts pages and categories?
- How to setup different permlalinks for posts and pages?
- Does “Custom Post Type” can have page hierarhy option?
- How to display custom field in product description?
- Post template not applying on theme (potentially rendering as Page template)
- How to use posts as tabs in a custom page?
- Cannot save pages after migration
- call a function when insert and update a custom post type
- Links Image in “Catalog” Page to Posts
- creating a custom post template
- WordPress Contents Migration
- Creating Slider in wordpress theme with custom post
- One Post with different content, depending on a Page
- Cannot use pages created on WP
- Different post types arranged on one page
- erase post excerpt limitation [×]
- How to display data with pagaination on backend?
- How to Associate Posts with Pages
- Why are my wp urls showing page not found?
- How do I hide single category post on my post page
- Set posts of a custom post type to be private by default?
- How make get_next_post() return first post when viewing last one
- How can I fix those issues generated by the Themecheck plugin
- Why is get_post_format() for “Standard” returns empty
- How can I add dropdown widget/box to admin post page?
- Password-protect a custom rss feed
- Custom permalinks – post type – hierarchical taxonomy’s
- How to show related posts by category or custom post type?
- ascending order custom post type
- [Plugin: Posts 2 Posts] Changing display order of connections
- Display taxonomy term only if there’s a value
- How to show post title outside of loop? [closed]
- How to delete all posts from a custom post type?
- adding .current* tags to custom post types and taxonomies
- Display types of posts in edit.php instead of All, Published, Scheduled and Draft
- CPT’s archive and single page not working [closed]
- Page as a child of a Custom Post Type
- Check if admin is editing page or custom post type
- How to Submit Post Via cURL & PHP
- is there a way to retrieve posts that do not have a featured image assigned?
- Not Able to Get Custom Post Type Gallery Images URL
- custom post type category count shortcode
- Add post location with mile radius allowing search
- How to integrate a form (Ninja Form or Contact Form 7) with Custom Post Types?
- Building a Treatments Page, What Do I Use?
- How to get all tags of a custom post type by id
- Why does not this wp_redirect work in is_single()?
- Create new custom post and post category of same name
- Load Next WordPress Posts With AJAX?
- If there is only one post (show elements) else (show other elements)
- Two column layout with alphabetical ordering
- Custom post type menu
- Modify Posts from Custom_Post_Type within the plugin
- how to redirect to a custom post template
- How to display posts from a certain category in a bootstrap 5 carousel loop with multiple items?
- How to get the custom post data using post id in WordPress?
- list articles in admin showing nested categories or slugs?
- Define multiple prefixes for custom post type
- programmatically generated custom post type is created more than once
- Show posts from WP Custom Post Type selected from a field in a metabox
- order custom post type posts by custom date
- How to show posts of the same category on a page?
- Need to display author’s email id in the “Edit post” field in wp dashboard. How do I do this?
- Custom Post Type
- Popup panel is only displaying 1 entry ignoring all others
- Custom Post Status & Taxonomies
- Search form to find custom meta box generated data
- Edit post meta direct from post.php?
- How to Arrange Support => Thumbnail
- Front-end form submission not creating post
- Excerpt for each post type and for is_front_page
- Post being scheduled that shouldnt be schedulded
- Get custom post type parent category
- How to create custom page templates with default page layout framework?
- show the most recent date of all posts to display on front end
- How Do I Add a Custom Post Type URL to Content?
- is therer any wordpress function to retrieve a specific html element from post content