M Similar Posts Wordpress Plugin - Rating, Reviews, Demo & Download
Plugin Description
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:
- Gutenberg Block
- Shortcode
- 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:
- ID — (integer) the ID of the post you’d like to get similar posts for. Default value: the current post ID.
- post_type — (string) the post type you’d like to query. Default value: “post”.
- taxonomy — (string) the taxonomy based on which you’d like to get similar items. Default value: “category”.
- 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
-
The options for the plugin’s widget.
-
The block in the Gutenberg editor.
-
The Gutenberg Block settings.