Figured it out 🙂 It ends up the Smarter Navigation plugin has a few other functions that I missed:
https://plugins.trac.wordpress.org/browser/smarter-navigation/trunk/template-tags.php
I used get_adjacent_id_smart()
like so:
<?php
$prev_post = get_adjacent_id_smart(true);
if(!empty($prev_post)):
echo 'not empty';
previous_post_smart();
else:
echo 'empty';
endif;
?>
And I got the behavior I was looking for, don’t know why the default WP function was not working according to the codex.
Related Posts:
- How to Restrict Previous & Next Post Link to Posts of Same Category?
- Possible?! A contextually titled back link
- Excluding category from post navigation in WordPress?
- Get Posts Under Custom Taxonomy
- How to add category to: ‘wp-admin/post-new.php’?
- Use category base slug in posts’ permalink
- Setting Custom Sort Order of Posts within a Category
- Display the latest post from a category in a page
- How to show list of posts by author and category?
- Exclude posts that only have the ‘Uncategorized’ category [duplicate]
- Getting the Next and Previous Posts Titles in the Sidebar?
- How to control which category will be picked for the slug of a post?
- get_the_term_list by hierarchy order
- How to change the layout and styling of posts according to their category in WordPress?
- Add default content to post (for specific category)
- Query only Posts from Both of Two Category?
- display sub categories assoccited with each post in a category archive page
- Display most recent post in category instead of archive?
- Use template of parent category for single post sub-categories
- Post in Multiple Categories to stay in current category (permalink, next previous post link)
- get_post_type_archive_link(‘post’) returns current category archive
- Get user’s most published categories
- Conditional that checks if a current category has any subcategory with posts
- How to set post expiration date and time and move the page to archive after expiration [closed]
- Exclude posts from featuring
- Articles are text-only in any “Category” instead of HTML
- Random post category URL
- How To Remove Certain category Posts From the Blog Page
- Add icon/badge next to posttitle of specific category
- Get current category id from post page wordpress
- Saving category to a post, before publishing the post
- Assign category to new post via URL
- Stop users posting into category while still seeing contents of the category
- Category Page Template not Showing Posts
- WordPress custom Query for Posts in Category display posts multiple times
- Categories list into registration form
- WordPress Multisite – Create Default Post and New Category On New Site Install
- Using ajax on editing a category edit page?
- Show posts count for Categories and Tags in wp_nav_menu
- How to get subcategories from category slug?
- How to display two random-post sections that are each under their own category
- Loop doesn’t exclude the specified category in home page
- How to create a sub post?
- WordPress bulk category select when publishing post
- Exclude some categories from listing on the current post
- how can i display my posts alphabetically?
- Change Post Title For Specific Category
- In what context should Categories and Tags be used
- list posts from two categories on a page – plugin not working
- How to create a playlist for audio associated with posts per category
- Add Text Domain To Post Navigation
- posts going to 2 pages/categories only show up in 1
- What’s a theme that properly handles previews of different types of posts?
- Display Parent Category of a Post belonging only to Subcategory
- Can I style single post that are in multiple catergories?
- Rewriting blog permalinks
- How to make ajax load posts from the current category?
- WordPress – When visiting a `single post/ single.php` my category menu item link becomes active
- Show single post child category from a determined parent
- How can I create a ‘sub-blog’ which has its own sidebar on individual posts?
- I want to add the 10 most recent posts under a parent category on the main menu
- how to filter posts by category without page load (ajax) in wordpress?
- How to increase the number posts that displays by a hierarchical taxonomy? (HTTP ERROR 500)
- Change URL of previous posts and next posts link in WordPress
- How to distinguish pages created by woocommerce?
- WordPress the_category(); only works with message-posts not with project posts, how do I specify project categories?
- How to display particular categorie’s post which associated to specific user?
- Display Specific Categories posts on the home page
- I want to show recent post according to category of the post in single.php?
- Limit amount of categories displayed in a post
- Code to display random ordered posts in Categories across pages [duplicate]
- Category and Posts in front page
- Allow registering user to select post category when signing up to blog
- how to print total number of posts filtered by category?
- Can the_post_navigation() be outside of the loop?
- Nothing appears using get_the_excerpt() in category.php
- Add category information beneath post?
- Custom plugin to get related posts by category
- Unable to uncheck a category in a post
- Next/Prev category post in same button
- Show category post with excerpt text
- How to show different categories in different pages?
- How to set a link to custom archieve page
- Older entries link within a category page
- how to style an individual page in a category [duplicate]
- each user having category with their name and can add sub categories post in that category
- Can’t assign another category other than Uncategorized int he following front end post submission form?
- exclude certain categories from posts
- List posts related to category on a div [closed]
- how to show all post with its contents
- wordpress show category link instead of post link [closed]
- CSS – Change height of Storefront / WooCommerce product categories, but not products
- excerpt in template for specific page
- Only show posts belonging to multiple cateogries at same time
- Wrap posts from a category in HTML
- How to display my categories in a list (to a post, not the sidebar)?
- How to make category for word post_content
- How can I fixe the article title problem?
- Automatically select category based on user role
- Filters do not work when there are multiple (one works)