M Similar Posts

plugin banner

This plugin lists similar to the current post based on the number of common categories.

Author:Georgi Popov a.k.a. Magadanski_Uchen (profile at wordpress.org)
WordPress version required:5.0
WordPress version tested:6.0.0
Plugin version:1.3.4
Added to WordPress repository:22-10-2013
Last updated:07-07-2022
Rating, %:100
Rated by:1
Plugin URI:http://wordpress.org/plugins/magadanski-simil...
Total downloads:6 720
Active installs:80+
plugin download
Click to start download

This plugin provides a list of similar / related entries to an article or a custom post type entry.

This list could be added in the form of a:

  1. Gutenberg Block
  2. Shortcode
  3. Widget

If you add a widget to the sidebar it will only appear when on the details view of an entry, as similarity cannot be calculated when on a list page of multiple entries.

The syntax for the shortcode is [magadanski-similar-posts id="" post_type="" taxonomy="" limit=""]

You can use the attributes as follows:

  1. ID — (integer) the ID of the post you’d like to get similar posts for. Default value: the current post ID.
  2. post_type — (string) the post type you’d like to query. Default value: “post”.
  3. taxonomy — (string) the taxonomy based on which you’d like to get similar items. Default value: “category”.
  4. limit — (integer) a maximum number of results you’d like to receive. Default value: 5.

The similarity is considered based on the number of common categories (or other taxonomy terms) for this post and the rest of the posts in your blog.


Screenshots
FAQ
ChangeLog