{"id":25812,"date":"2013-10-22T21:00:13","date_gmt":"2013-10-22T21:00:13","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/magadanski-similar-posts\/"},"modified":"2022-07-07T14:28:03","modified_gmt":"2022-07-07T14:28:03","slug":"magadanski-similar-posts","status":"publish","type":"plugin","link":"https:\/\/kea.wordpress.org\/plugins\/magadanski-similar-posts\/","author":7437790,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.3.4","stable_tag":"1.3.4","tested":"6.0.0","requires":"5.0","requires_php":"","requires_plugins":"","header_name":"M Similar Posts","header_author":"Georgi Popov a.k.a. Magadanski_Uchen","header_description":"","assets_banners_color":"6990dc","last_updated":"2022-07-07 14:28:03","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/buy-me-a-beer.magadanski.com\/project\/magadanski-similar-posts\/","header_plugin_uri":"http:\/\/wordpress.org\/plugins\/magadanski-similar-posts\/","header_author_uri":"http:\/\/magadanski.com\/","rating":5,"author_block_rating":0,"active_installs":10,"downloads":10242,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0":{"tag":"1.0","author":"magadanski_uchen","date":"2013-10-22 21:18:45"},"1.0.1":{"tag":"1.0.1","author":"magadanski_uchen","date":"2013-10-22 21:47:48"},"1.0.2":{"tag":"1.0.2","author":"magadanski_uchen","date":"2013-10-23 20:51:42"},"1.0.3":{"tag":"1.0.3","author":"magadanski_uchen","date":"2013-10-24 19:27:53"},"1.0.4":{"tag":"1.0.4","author":"magadanski_uchen","date":"2013-10-24 19:30:26"},"1.0.5":{"tag":"1.0.5","author":"magadanski_uchen","date":"2013-10-30 09:50:57"},"1.0.6":{"tag":"1.0.6","author":"magadanski_uchen","date":"2013-10-30 16:15:24"},"1.0.7":{"tag":"1.0.7","author":"magadanski_uchen","date":"2013-12-24 12:38:40"},"1.1":{"tag":"1.1","author":"magadanski_uchen","date":"2014-03-29 10:33:49"},"1.1.1":{"tag":"1.1.1","author":"magadanski_uchen","date":"2014-03-29 10:42:35"},"1.1.2":{"tag":"1.1.2","author":"magadanski_uchen","date":"2014-04-23 08:41:23"},"1.1.3":{"tag":"1.1.3","author":"magadanski_uchen","date":"2014-04-23 08:55:29"},"1.1.4":{"tag":"1.1.4","author":"magadanski_uchen","date":"2014-05-24 12:28:39"},"1.1.5":{"tag":"1.1.5","author":"magadanski_uchen","date":"2014-09-07 18:30:33"},"1.1.6":{"tag":"1.1.6","author":"magadanski_uchen","date":"2014-09-24 18:35:45"},"1.2":{"tag":"1.2","author":"magadanski_uchen","date":"2014-12-29 20:19:15"},"1.2.1":{"tag":"1.2.1","author":"magadanski_uchen","date":"2015-04-11 07:45:44"},"1.2.2":{"tag":"1.2.2","author":"magadanski_uchen","date":"2016-04-16 19:58:28"},"1.2.3":{"tag":"1.2.3","author":"magadanski_uchen","date":"2016-08-28 07:41:58"},"1.2.4":{"tag":"1.2.4","author":"magadanski_uchen","date":"2016-09-10 17:59:42"},"1.3.0":{"tag":"1.3.0","author":"magadanski_uchen","date":"2020-03-26 16:28:26"},"1.3.1":{"tag":"1.3.1","author":"magadanski_uchen","date":"2020-03-26 16:28:47"},"1.3.3":{"tag":"1.3.3","author":"magadanski_uchen","date":"2020-04-05 14:23:20"},"1.3.4":{"tag":"1.3.4","author":"magadanski_uchen","date":"2022-07-07 14:28:03"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"2"},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":1493834,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":1493834,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":1493834,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":1493834,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":{"magadanski\/similar-posts":{"name":"magadanski\/similar-posts","title":"Similar Posts"}},"tagged_versions":["1.0","1.0.1","1.0.2","1.0.3","1.0.4","1.0.5","1.0.6","1.0.7","1.1","1.1.1","1.1.2","1.1.3","1.1.4","1.1.5","1.1.6","1.2","1.2.1","1.2.2","1.2.3","1.2.4","1.3.0","1.3.1","1.3.3","1.3.4"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":792041,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":2268416,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":2268416,"resolution":"3","location":"assets","locale":""}},"screenshots":{"1":"<p>The options for the plugin's widget.<\/p>","2":"<p>The block in the Gutenberg editor.<\/p>","3":"<p>The Gutenberg Block settings.<\/p>"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[89,166,12268],"plugin_category":[],"plugin_contributors":[84795],"plugin_business_model":[],"class_list":["post-25812","plugin","type-plugin","status-publish","hentry","plugin_tags-category","plugin_tags-posts","plugin_tags-similar","plugin_contributors-magadanski_uchen","plugin_committers-magadanski_uchen"],"banners":{"banner":"https:\/\/ps.w.org\/magadanski-similar-posts\/assets\/banner-772x250.png?rev=1493834","banner_2x":"https:\/\/ps.w.org\/magadanski-similar-posts\/assets\/banner-1544x500.png?rev=1493834","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/magadanski-similar-posts\/assets\/icon-128x128.png?rev=1493834","icon_2x":"https:\/\/ps.w.org\/magadanski-similar-posts\/assets\/icon-256x256.png?rev=1493834","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/magadanski-similar-posts\/assets\/screenshot-1.png?rev=792041","caption":"<p>The options for the plugin's widget.<\/p>"},{"src":"https:\/\/ps.w.org\/magadanski-similar-posts\/assets\/screenshot-2.png?rev=2268416","caption":"<p>The block in the Gutenberg editor.<\/p>"},{"src":"https:\/\/ps.w.org\/magadanski-similar-posts\/assets\/screenshot-3.png?rev=2268416","caption":"<p>The Gutenberg Block settings.<\/p>"}],"raw_content":"<!--section=description-->\n<p>This plugin provides a list of similar \/ related entries to an article or a custom post type entry.<\/p>\n\n<p>This list could be added in the form of a:<\/p>\n\n<ol>\n<li>Gutenberg Block<\/li>\n<li>Shortcode<\/li>\n<li>Widget<\/li>\n<\/ol>\n\n<p>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.<\/p>\n\n<p>The syntax for the shortcode is <code>[magadanski-similar-posts id=\"\" post_type=\"\" taxonomy=\"\" limit=\"\"]<\/code><\/p>\n\n<p>You can use the attributes as follows:<\/p>\n\n<ol>\n<li>ID -- (<em>integer<\/em>) the ID of the post you'd like to get similar posts for. Default value: the current post ID.<\/li>\n<li>post_type -- (<em>string<\/em>) the post type you'd like to query. Default value: \"post\".<\/li>\n<li>taxonomy -- (<em>string<\/em>) the taxonomy based on which you'd like to get similar items. Default value: \"category\".<\/li>\n<li>limit -- (<em>integer<\/em>) a maximum number of results you'd like to receive. Default value: 5.<\/li>\n<\/ol>\n\n<p>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.<\/p>\n\n<!--section=installation-->\n<p>Download and activate the plugin. Go to Widgets and add the Similar Posts widget to a sidebar of your choosing.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt id='how%20does%20the%20plugin%20determine%20whether%20two%20posts%20are%20similar%3F'><h3>How does the plugin determine whether two posts are similar?<\/h3><\/dt>\n<dd><p>It checks the categories assigned to this and other posts. The most similar post is considered the one with the most common categories.<\/p><\/dd>\n<dt id='does%20this%20work%20for%20tags%20too%3F'><h3>Does this work for tags too?<\/h3><\/dt>\n<dd><p>Yes, when inserting the widget you are allowed to chose between categories, tags or any custom taxonomy you have.<\/p><\/dd>\n<dt id='does%20this%20work%20for%20custom%20post%20types%3F'><h3>Does this work for custom post types?<\/h3><\/dt>\n<dd><p>Yes, this works for pages, posts or any custom post type you have.<\/p><\/dd>\n<dt id='does%20this%20check%20the%20post%27s%20content%20too%3F'><h3>Does this check the post's content too?<\/h3><\/dt>\n<dd><p>No, currently similarity is calculated only by shared taxonomy terms (categories, tags, etc).<\/p><\/dd>\n<dt id='is%20the%20plugin%20offered%20in%20my%20language%3F'><h3>Is the plugin offered in my language?<\/h3><\/dt>\n<dd><p>The plugin is originally distributed in English and is also translated in Spanish and Bulgarian. In case you need it in some other language you can help with this on <a href=\"https:\/\/translate.wordpress.org\/\">https:\/\/translate.wordpress.org\/<\/a><\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.3.4<\/h4>\n\n<p>Add compatibility with WordPress 6.0.<\/p>\n\n<h4>1.3.3<\/h4>\n\n<p>Remove some meaningless options in the \"Post Type\" dropdown field for the \"Similar Posts\" widget.<\/p>\n\n<p>Dev: you can use the new <code>msp_allowed_post_types<\/code> filter to add back any post types that may now be gone, but you consider them needed (for example some private post types for any reason).<\/p>\n\n<h4>1.3.2<\/h4>\n\n<p>i18n enhancements for the Gutenberg block.<\/p>\n\n<h4>1.3.1<\/h4>\n\n<p>Fix the issue where after updating the plugin to 1.3.0 the newly developed features and Gutenberg block were not available.<\/p>\n\n<p>Plase update to 1.3.1 to get all these benefits.<\/p>\n\n<h4>1.3.0<\/h4>\n\n<p>Add Gutenberg support. The included options allow you to chose a taxonomy and set a limit (upper boundary set to 10).<\/p>\n\n<p>The block will appear as a plain unordered list. Future roadmaps can include the option to show is as a grid, also listing a featured thumbnail for the matching entries and\/or an excerpt.<\/p>\n\n<h4>1.2.4<\/h4>\n\n<p>VisualComposer icon update to match latest branding of <a href=\"http:\/\/magadanski.com\/\">http:\/\/magadanski.com\/<\/a><\/p>\n\n<p>Tested against WordPress version 4.6.1.<\/p>\n\n<h4>1.2.3<\/h4>\n\n<p>Updates to allow translation via <a href=\"https:\/\/translate.wordpress.org\/\">https:\/\/translate.wordpress.org\/<\/a><\/p>\n\n<h4>1.2.2<\/h4>\n\n<p>Tested compatibility with WordPress 4.5 -- no issues registered.<\/p>\n\n<h4>1.2.1<\/h4>\n\n<p>Bugfix: added missing return statement for public functions.<\/p>\n\n<p>This is an absolutely safe to install update -- it won't break any of the existing functionality and you are encouraged to do so.<\/p>\n\n<h4>1.2<\/h4>\n\n<p>Dev: The following filters have been added for some control over the generated list markup:<\/p>\n\n<pre><code>msp_similar_posts_list_tag -- by default this is `ul` but you can set it to `ol`.\n<\/code><\/pre>\n\n<p>There are two more similar filters for this: <code>msp_similar_posts_shortcode_tag<\/code> and <code>msp_similar_posts_widget_tag<\/code>. As you may guess by the name, those allow to set the tag for only either the shortcode markup or the widget markup.<\/p>\n\n<p>These secondary filters are executed after the main <code>msp_similar_posts_list_tag<\/code>, so they can overwrite the value.<\/p>\n\n<pre><code>msp_similar_posts_list_classes -- this allows you to add\/edit\/remove classes for the list tag. By default only one class is present: \"msp-list\".\n<\/code><\/pre>\n\n<p>There are two secondary filters for this as well: <code>msp_similar_posts_shortcode_classes<\/code> and <code>msp_similar_posts_widget_classes<\/code>.<\/p>\n\n<h4>1.1.6<\/h4>\n\n<p>Dev: fix for notice -- missing \"global\" keyword for variable.<\/p>\n\n<h4>1.1.5<\/h4>\n\n<p>Fix for widget bug to allow support for custom post types.<\/p>\n\n<h4>1.1.4<\/h4>\n\n<p>Fix for improper regular expression for request SQL query modification.<\/p>\n\n<h4>1.1.3<\/h4>\n\n<p>Dev: added <code>msp_get_similar_posts()<\/code> shortcut function.<\/p>\n\n<h4>1.1.2<\/h4>\n\n<p>Bugfix for showing the plugin widget on pages if necessary.<\/p>\n\n<p>Fix for other potential issues.<\/p>\n\n<h4>1.1.1<\/h4>\n\n<p>Internationalization updates.<\/p>\n\n<p>Feel free to submit patches for updating Spanish translation or adding a new one.<\/p>\n\n<h4>1.1<\/h4>\n\n<p>Added <a href=\"http:\/\/vc.wpbakery.com\/\">WPBakery Visual Composer<\/a> integration.<\/p>\n\n<p>Fix: <code>set_similar_id<\/code> uses current post's ID only if <code>$id<\/code> argument is 0 AND <code>similar_id<\/code> property is 0 too.<\/p>\n\n<p>Dev: externalized <code>get_post_types<\/code> and <code>get_taxonomies<\/code> methods for <code>Magadanski_Similar_Posts_Widget<\/code> widget as global helper functions prefixed <code>msp_<\/code>:<\/p>\n\n<ul>\n<li><code>msp_get_post_types<\/code><\/li>\n<li><code>msp_get_taxonomies<\/code><\/li>\n<\/ul>\n\n<h4>1.0.7<\/h4>\n\n<p>Tested compatibility with WordPress 3.8 -- no issues registered.<\/p>\n\n<p>Added Spanish localization for the plugin thanks to Andrew Kurtis from <a href=\"http:\/\/www.webhostinghub.com\/\">WebHostingHub<\/a><\/p>\n\n<h4>1.0.6<\/h4>\n\n<p>Fix for cause preventing widget from rendering.<\/p>\n\n<h4>1.0.5<\/h4>\n\n<ul>\n<li>Added inline documentation and some code comments.<\/li>\n<li>Plugin name rebranded from \"Magadanski Similar Posts\" to \"M Similar Posts\"<\/li>\n<li>i18n, filters and function prefixes updated to match rebranding -- \"msp\" is used instead of \"simposts\"<\/li>\n<\/ul>\n\n<p>The folder for the plugin files has been kept to \"magadanski-similar-posts\" to prevent plugin deactivation upon update.<\/p>\n\n<p>Hopefully the available custom filters have not been widely spread, so this change will not affect any custom code.<\/p>\n\n<h4>1.0.4<\/h4>\n\n<p>Updated readme.<\/p>\n\n<h4>1.0.3<\/h4>\n\n<p>Added [magadanski-similar-posts] shortcode.<\/p>\n\n<h4>1.0.2<\/h4>\n\n<p>Added proper screenshots<\/p>\n\n<h4>1.0.1<\/h4>\n\n<p>Updated readme.<\/p>\n\n<h4>1.0<\/h4>\n\n<p>Plugin was released.<\/p>","raw_excerpt":"This plugin lists similar to the current post based on the number of common categories.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/25812","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=25812"}],"author":[{"embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/magadanski_uchen"}],"wp:attachment":[{"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=25812"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=25812"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=25812"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=25812"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=25812"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=25812"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}