Add these two where you want them to display within your single.php file. It will make the title of the post a link.
<?php previous_post_link(); ?>
<?php next_post_link(); ?>
EDIT:
Sorry I missed the second part of your question about future posts. Here’s what I would probably do. It’s not tested, but will give you an idea.
$adjacent_post = get_adjacent_post(false,'',false) ;
if (get_post_status( $adjacent_post->ID ) == 'publish'){
echo '<?php next_post_link(); ?>';
}
else {
echo get_the_title($adjacent_post->ID).' | '. $adjacent_post->post_date;
}
Related Posts:
- Visual Studio SignTool.exe Not Found
- How can I set a draft page as parent without publishing?
- Display a post’s publish date from 2112
- Does blocking xmlrpc.php affect pinging update services like pingomatic
- I can’t preview post’s change once they are published
- Publish post when edit post form submitted with enter/return pressed on keyboard
- How to make scheduled post preview visible to anyone?
- Scheduled Posts and wp-cron – Why don’t scheduled posts publish if too old?
- Why does publish_{custom-post-type} fire on update?
- Show recent published posts
- Is there a way to know if a post has been published through XML-RPC?
- How to unpublish a page and still keep a draft?
- get_terms on save_post hook
- Save and Publish button not working after installing SSL
- Disable “preview changes” button
- Can we have private drafts?
- Update post meta on bulk edit / update
- Can’t schedule post for another time
- publish_post called too early
- Custom save button shows ‘Are you sure you want to…’ dialog
- Get publish post link?
- Controlled publishing in WordPress
- Change the text of the publish button to Save
- problem with publish date not always appearing [duplicate]
- What is happening to make my Update/Publish button disabled?
- What is the reason for the new_to_publish hook not working?
- After I publish a post where does it go
- Should you manually ping new WordPress posts?
- Authors should not publish
- How to add custom status to quick edit
- I need to modify drafts using custom data from database and then publish it
- How to show or hide a post based on meta_value selection?
- i am making text changes on my page show in preview not on live site, why? [closed]
- Is WordPress “publish” atomic?
- How to move post process to background
- How does redirect work when publish date changes and date in url changes?
- Gutenberg publish date datepicker
- How Google Indexer should only index published pages
- Publish and go to page [duplicate]
- Publish Post Action Not Working
- Is it normal for a scheduled post to say “Missed Schedule”
- Manage multiple wordpress installs (Best Practice)
- Force Publish Future (Scheduled) Posts Immediately [duplicate]
- Can’t publish posts, Jetpack won’t connect, empty notification emails to my inbox [closed]
- Duplicate post on publish
- How is it possible to use a very reduced version of WordPress?
- Problems in updating a self-developed plugin
- When i save or publish a post setting reset wp
- Can the Next/Prev Post links be ordered by menu order or by a meta key?
- How can I delay the publishing of a page or post?
- How to HIDE everything in PUBLISH metabox except Move to Trash & PUBLISH button
- is it possible to get next_post_link
- add action only on post publish – not update
- How to prevent posts from being published too close to each other?
- Hide permalink and preview button and link on custom post
- Get Previous & Next posts by Post ID
- Filter next_post_link() and previous_post_link() by meta_key?
- How can I make it so the Add New Post page has Visibility set to Private by default?
- How can I add title attributes to next and previous post link functions?
- How to Get Next or Previous Post in a Specific Tag?
- Making a Shortcode [NEXT] and [PREVIOUS] to place into specific posts for post navigation
- Is it possible to Schedule Attachments in WordPress?
- InDesign to WordPress workflow
- Elegant way to include only published posts with get_objects_in_term()?
- How to get next and previous post links, alphabetically by title, across post types, in a shortcode
- How to call a REST endpoint when a post is published?
- get_adjacent_post alternative on a very large db
- Prevent publishing the post before setting a featured image?
- How can I make post fields required in WordPress?
- Filter get_adjacent_post() for private posts, how to modify JOIN/WHERE?
- Prev/Next child navigation for current page?
- How can I get next/ previous post links to order by a filter (by the last word of the title)?
- WordPress plugin to publish to multiple remote WordPress blogs
- Post publish only hook?
- Publish pending article from front end with a button?
- next and previous post link ordered alphabetically
- How to add a “publish” link to the quick actions
- How can I add a jQuery OnClick event to the Publish posts button?
- How to let authors revise other authors drafts, but keep them from publishing?
- Customize users’ capabilities to change a custom post’s post status
- How to limit user to publish post per day and per role?
- Thumbnail (featured image) of next and previous post is not being properly displayed!
- How can I limit the length of the previous/next posts in my WordPress Theme?
- How to access the post meta of a post that has just been published?
- How to use next_post_link and previous_post_link on single posts in search results
- How to programmatically create a connection with [Plugin: Posts 2 Posts] on cpt publish?
- Next/Previous Posts Links: Alphabetically and from Same Category
- How to show an error message after publishing a post?
- When a user creates a post (pending), send a confirmation link that allows them to publish
- Editing Screen: Make Update or Publish Button Follow The Page
- How can I get next post id after current post id for custom post type
- Problem excluding category from get_next_post
- How to change post status in hook?
- In what sequence are the hooks fired when a post is “published”?
- Why is previous_post_link and next_post_link working outside of the Loop?
- How to show next Post Thumbnail image in WordPress using current post id
- Next and previous link in custom post type in the same taxonomy term
- Restrict the Number of Posts an Author can Publish (over time)?
- adding custom fields to next and previous post link
- WordPress prompt checklist before publish?