WordPress.org

Plugin Directory

Related Posts by Taxonomy

This lightweight plugin lets you easily display related posts in a sidebar or after your posts as thumbnails, links, excerpts or full posts.

Quickly increase your readers' engagement by adding related posts in the sidebar or after post content with a widget or shortcode. Posts with the most terms in common will display at the top. This plugin is capable of finding related posts in multiple taxonomies and post types. Include or exclude terms from the search for related posts. Change the look and feel by using your own templates in your (child) theme.

plugin documentation

Plugin features:

  • Efficient cached query to get the related posts.
  • Small Footprint.
  • Widget and Shortcode.
  • Display related posts as post thumbnails, links, excerpts or full posts.
  • Automatic display of related posts after the post content.
  • Search for related posts in single or multiple taxonomies and post types.
  • Exclude or include terms and posts.
  • Limit the search of related posts by date or number.
  • Use your own HTML templates for display of the related posts.
  • Use plugin functions in your theme templates to display related posts yourself.
  • Use Filters to change the default behavior of the plugin.
  • Extensive plugin documentation.
  • Follows WordPress coding standards and plugin best practices.

Follow this plugin on GitHub.

See the FAQ to have related posts automatically display after the post content without using the shortcode or widget.

Default usage for the shortcode is:

[related_posts_by_tax]

Attributes for the shortcode are:

  • post_id
  • taxonomies
  • post_types
  • posts_per_page
  • order
  • orderby
  • before_shortcode
  • after_shortcode
  • title
  • before_title
  • after_title
  • exclude_terms
  • include_terms
  • exclude_posts
  • format
  • image_size
  • columns
  • caption
  • limit_posts
  • limit_year
  • limit_month
  • related

Example to show 10 related posts instead of the default 5.

[related_posts_by_tax posts_per_page="10"]

See the documentation for more information about the attributes and their defaults.

Translations

Requires: 3.8 or higher
Compatible up to: 4.2.2
Last Updated: 2015-4-22
Active Installs: 5,000+

Ratings

5 out of 5 stars

Support

11 of 12 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

1 person says it works.
0 people say it's broken.

100,3,3
100,2,2
100,1,1 100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,2,2
100,1,1 100,1,1
100,2,2 100,3,3
100,1,1 100,1,1
100,2,2
100,2,2 100,1,1
100,1,1
100,1,1
100,1,1
100,1,1