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?
- Can the Next/Prev Post links be ordered by menu order or by a meta key?
- is it possible to get next_post_link
- Why is wp_kses not keeping style attributes as expected?
- Get Previous & Next posts by Post ID
- Filter next_post_link() and previous_post_link() by meta_key?
- Order tags, but not alphabetically
- WordPress: Can I add categories/tags to all sites in my network at once?
- How can I add title attributes to next and previous post link functions?
- How do I display a tag cloud under my post that only shows tags from that post?
- Display list of most used tags in the last 30 days
- Check if current page has given tag ID
- how do I get the tag name from tag id?
- Do tags have dates?
- How to get next and previous post links, alphabetically by title, across post types, in a shortcode
- get_adjacent_post alternative on a very large db
- Stop wordpress from removing HTML attributes
- What is the difference between terms and tags?
- Stop WordPress From Removing HTML Comments In Content
- How can I let my audience tag my posts?
- Display tags in list without link
- how can I use WP_Query to exclude a specific tag.?
- How can you tie into the tag metabox?
- How can I get next/ previous post links to order by a filter (by the last word of the title)?
- next and previous post link ordered alphabetically
- Thumbnail (featured image) of next and previous post is not being properly displayed!
- not functioning
- How to use the Tag description as the title attribute?
- Best way to show map of tagged posts?
- How to display the_tags() as plain text
- Remove a particular tag name from the tagcloud
- How do I change the output of get_the_tag_list()?
- How can I limit the length of the previous/next posts in my WordPress Theme?
- Query all posts with specific tag
- How to query with get_posts() for posts with any tag
- How to use next_post_link and previous_post_link on single posts in search results
- How to remove Tags: text from the_tags?
- Next/Previous Posts Links: Alphabetically and from Same Category
- Change tooltip in tag cloud
- Getting an ordered list of tags – via wp_tag_cloud or not?
- Is it possible to filter get_adjacent_post() with tags?
- Apply class to the a tag link generated in post tag links
- What are allowedposttags and allowedtags?
- Display tags for current post in sidebar
- How can I get next post id after current post id for custom post type
- How to allow user to perform search by more than one tag
- Problem excluding category from get_next_post
- 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
- How important are WordPress tags for SEO purposes?
- get_post_ancestors returns empty
- adding custom fields to next and previous post link
- Combining tags from post types
- specify meta_key / meta_value condition for prev_post_link and next_post_link
- Display tags belonging to a specific post type only
- Allow visitors to search by multiple tags (specific IDs)
- List ‘n’ number of posts from a Tag, each with a different class or ID
- Showing all tags in admin -> edit post
- Using previous_post_link and next_post_link to wrap around post sequence
- Redirect Tag to Post with the same name
- Disable “previous link” in first post and “next link” in last post
- Add exception for specific tag
- previous / next post with thumbnail
- Creating a Lightweight Media Tags Plugin with a Custom Taxonomy
- Link from tags to tag pages displaying all posts with that tag
- Displaying the most recently used tags
- Limit tag word count
- When are tags counted? Can it be trigered manually?
- How can I extend Quick Edit option with 2 more fields
- Can’t Get ‘tag’ Page To Display only Tagged Posts
- How to separate the tags?
- alt attributes not showing on pages
- Creating a unique, linked list of tags from a specific category?
- next_posts_link not working in custom loop
- Massive Tags Remove Using MySQL
- Add # before each tag
- Quicktags on all textarea.. Not working on plugin?
- Making next_posts_link(); return posts by month
- term/tag not being saved for custom post type
- display tag slug as class per link in tag cloud
- Show prev and next post links for parent post of current image in attachment page?
- how to change # of tag posts on /tag page?
- require one tag for each post
- How can I remove certain HTML tags from the RSS feed?
- WordPress previous_post_link exclude posts with multiple categories
- Post in Multiple Categories to stay in current category (permalink, next previous post link)
- Stop WordPress removing tags when switching from HTML to Visual (TinyMCE)
- Showing Thumbnail from Previous and Next Posts
- Next and prev. post link ONLY within category
- WP API Get post with tag names instead of tag ID’s
- How to add class on term link?
- Link directly to the first post in an archive
- Set homepage to only display posts from one tag
- get_terms with more than x post count
- Tags as a dropdown with set tags
- Why ‘C++’ tag is converted to ‘C# ‘?
- Working with Next and Prev links in Single Taxonomy Templates
- Change the color of post title on specific tags
- How to show tags in posts, orderby count(most used) not alphabetically?
- How to make my pagination loop continuously?