I would check out the Ambrosite Next/Previous Post Link Plus plugin which gives you a lot of arguments to pass to the “improved” next/prev link functions made by the plugin. I recently needed this type of functionality and this plugin worked great.
With the plugin, you get to do stuff like this:
<?php next_post_link_plus( array('in_cats' => '3,5') ); ?>
Related Posts:
- How to Get Next or Previous Post in a Specific Tag?
- How do I display a tag cloud under my post that only shows tags from that post?
- how can I use WP_Query to exclude a specific tag.?
- next and previous post link ordered alphabetically
- not functioning
- Best way to show map of tagged posts?
- Remove a particular tag name from the tagcloud
- How do I change the output of get_the_tag_list()?
- How to remove Tags: text from the_tags?
- What are allowedposttags and allowedtags?
- Why is previous_post_link and next_post_link working outside of the Loop?
- When switching from html to visual editor the tag gets erased
- List ‘n’ number of posts from a Tag, each with a different class or ID
- When are tags counted? Can it be trigered manually?
- alt attributes not showing on pages
- next_posts_link not working in custom loop
- display tag slug as class per link in tag cloud
- Showing Thumbnail from Previous and Next Posts
- How to add class on term link?
- Change the color of post title on specific tags
- How to use meta data for each tag cloud a
- Exclude a specific tag from the get_the_tags list
- Limit tag cloud terms by date
- URL scheme to retrieve tag archive by ID
- In need of array of post tags
- Query all posts which do not have tags assigned to them
- Tag subscription option in wordpress. How?
- How to allow html5 tag in WordPress
- How to list custom tags too, to wp-list-table table?
- Do not change the order of the tags in the editor
- How can I prevent wordpress from creating tag pages?
- how can i add all my tags to tagcloud?
- Using HTML 5 Details/Summary Tag
- Blog post : Remove comma between Tag names [closed]
- Why word can’t be displayed in wordpress?
- Get all terms if product of that term contains a specific category
- How can the user place a custom text string as a placeholder for a plugin
- Exclude Posts From Specific Category from Next and Previous post links
- Is it possible to skip certain specified pages when using < prev and next > links?
- What hooks are needed to bind a tag to a reusable block?
- previous/next_post_link in the same sub-category?
- Next Posts Prev Posts for Standard post format only
- Track tags in Google Analytics? [closed]
- tags not showing on custom post type single page
- How to get the first tag of a post as a hyperlink?
- Echo tag name if post has one of the tags
- Display post if a specific tag is present
- Single: Prev and next Post in same order as main query, in all categories
- Do we have In_category like function for tags?
- Can’t Find a “Most Popular Tags” Hack Anywhere [closed]
- How to display related posts from this code?
- Change Size of P Tag on One Page Template [closed]
- How to add a class to anchor tags using the get_the_tag_list(); function? [duplicate]
- Get ID for previous/next image link
- Pagination for custom loop on custom page template is not displaying anything
- Outputting HTML elements through WP-API
- Is there a way to retire old tags?
- Custom Posts and Posts – next_post_link and previous_post_link not working together
- using images in next/previous_post_link [closed]
- Next Prev Post link rendering current post thumbnail
- grab neighboring content in a query
- WP_Query and pagination AGAIN?
- how to add # before tags?
- Is it possible to embed a wordpress tag page on wordpress?
- List latest post for each tag with a category
- How can I combine WordPress default Tags and bbPress tags into one archive page?
- How to add product tag to order list
- How do I display all tags (linked) from all posts, inline, with a separator?
- Hide/exclude certain tags under single post
- Order by post_date does not work in Previous and Next post pagination
- Show ‘tags’ for a post on the frontend when in a list view
- How remove tags just have one post?
- How to remove base tags at the wordpress
- How are special characters encoded in tag-URL?
- How to show tags + posts for a custom taxonomy?
- How can I show a tag description, using ‘slug’ rather than ‘id’
- Is it possible to have a Faceted Navigation/Filters on a Product Tag page?
- How to list tags
- Previous/Next custom post links within custom taxonomy
- How to know if the most recent article
- How do I modify the Previous and Next Page posts on blog pages to include “previous” and “next” before the links?
- Conditional inside search result excerpt
- Show all tags NOT applied to post
- using next-page and previous page inside a wp_query
- Is There A Way To Add Weight Or Order To Tags?
- Mapping external data to tags via term_id
- How to take list of words and insert them as terms to become tags of a post
- Create three unique tag page templates
- Assign tags records that have a keyword
- Change next_post and previous_link to navigate throught parent categories only
- Tags Sorted By Characters?
- How to include post count in this “get_tags” snippet
- How to retrieve the post_id of a tag page?
- pagination/prev and next page links not showing
- How to add tags to identify custom post types in archives?
- Datetime on time tag wordpress puts it outside the tag
- See when a tag was first added
- Next/previous post link to posts only within one or more specific categories
- Show all tags but exclude a certain tag
- How to add thumbnail support to WordPress next / previous post loop?