Skip to main content
Agency Program Get 2× more leads and save 50% on hosting. Built for agencies ready to grow. Book a call
Related Posts by Taxonomy icon

Related Posts by Taxonomy

v2.7.6
by keesiemeijer · 4.8 (76 reviews)

Display a list of related posts on your site based on the most terms in common. Supports thumbnails, shortcodes, a widget and more.

10K+ active installs Updated Nov 18, 2024 Tested to 6.7.2
Try Demo Download
Pre-installed Ready in ~10s No card

About Related Posts by Taxonomy

The Related Posts by Taxonomy plugin allows you to easily add related posts to your WordPress site. You can display these posts in the sidebar or after the content of a post, and customize the look and feel using your own templates. The plugin also supports multiple taxonomies and post types, and includes features like excluding or including specific terms and posts.

Screenshots

Related Posts by Taxonomy screenshot
Related Posts by Taxonomy screenshot
Related Posts by Taxonomy screenshot
Related Posts by Taxonomy screenshot

Frequently asked questions

How can I display related posts automatically after the post content without using the shortcode or widget?
The plugin documentation and FAQ provide information on how to configure automatic display of related posts after post content. This feature allows related posts to appear without manual shortcode or widget placement.
What are the default usage and attributes for the shortcode?
The default usage for the shortcode is [related_posts_by_tax]. Attributes for the shortcode are available in the plugin documentation.
Where can I find additional documentation or support for the plugin?
Extensive plugin documentation is available. You can also follow the plugin on GitHub and search the code reference for more information.

Changelog

2.7.6

  • Enhancement
    • Add a filter to use any theme directory for custom related posts template files

2.7.5

  • Enhancement
    • Fix PHP 8 and up deprecated notices

2.7.4

  • Enhancement
    • Update the block gallery with the HTML changes made in WordPress 5.4 (again!).
    • Use post title for aria-label only
    • Display cache log in footer (because admin_bar_menu hook changed to wp_body_open)
    • Getting ready for WP 5.5 (updating deprecated functions)

2.7.3

  • Enhancement
    • Make the no posts found message filterable.
    • Update gallery with the HTML changes made in the WordPress 5.3 gallery.
    • Add accessibility to the gallery item element.
  • Deprecated
    • The ‘terms’ and ‘related’ arguments are deprecated in favor of the ‘include_terms’ argument.
      • The ‘include_terms’ argument now uses the included terms without any restrictions.
      • The default value for the ‘related’ argument changed from boolean true to null.
      • Set the ‘related’ argument to boolean true to have the old restrictions back.

2.7.2

  • Bug Fixes
    • Fix for gallery image (fallback) filter not being reached.
    • Sanitize Rest API rendered HTML with wp_kses_post().

2.7.1

  • Enhancement
    • New format for related galleries similar to the Gutenberg gallery block.
    • Include child or parent terms for the related posts query.
    • Filters for Widget defaults and instance.
  • Bug Fixes
    • (minor) Don’t default to all public taxonomies if no valid taxonomies are used.

2.6.0

  • Enhancement
    • Meta query
      • Allows you to query related posts with post meta
      • Use meta arguments in the shortcode
      • Use a filter for the widget or for complex meta queries
    • ID query
      • Allow queries for post IDs only. (for the related posts in the widget and shortcode templates)
      • Speeds up the related posts query. (not activated by default because of back compatibility)
      • Please read the documentation about query optimization before using this feature
    • Lazy loading (opt in feature).
      • Speeds up perceived page load time for very large sites
      • Does the query for related posts (with Ajax) after the page is loaded
      • Recommended for related posts below the fold.
    • Detect post type Page taxonomies
    • Preparing the plugin for the (Gutenberg) editor block feature

2.5.1

  • Enhancement
    • Add ability to show the post date after the post title
    • Allow getting post fields from the cache
    • Add new filter to filter all related post permalinks
    • Add new tests for the post type feature (GitHub)
  • Bug fixes
    • (minor) Add post classes after retrieving posts from the cache
    • (minor) Return an error if invalid taxonomies or post types was requested with the WP Rest API

2.5.0

  • Enhancement
    • Prepare plugin for gutenberg blocks
    • Add ‘terms’ parameter for shortcode and widget
    • Add GDPR information to readme.txt
    • deprecate functions (with back compatibility)
      • km_rpbt_related_posts_by_taxonomy()
      • km_rpbt_get_default_args()
      • km_rpbt_related_posts_by_taxonomy_validate_ids()
      • km_rpbt_related_posts_by_taxonomy_template()
      • km_rpbt_post_title_link()
      • km_rpbt_get_related_post_title_link()
      • km_rpbt_related_posts_by_taxonomy_widget()
  • Bug fixes
    • (minor) Add missing filter pre_related_posts before cache queries
    • (minor) Add missing properties to related posts returned by the cache

For older changelog versions see the changelog.txt file

Try other plugins

Really Simple SSL icon

Really Simple SSL

4.9 · 4M+ installs

The easiest way to improve security! Leverage your SSL certificate and protect your website visitors.