{"id":71177,"date":"2017-07-02T21:19:42","date_gmt":"2017-07-02T21:19:42","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/softmixt-relations\/"},"modified":"2018-05-08T07:48:53","modified_gmt":"2018-05-08T07:48:53","slug":"softmixt-relations","status":"publish","type":"plugin","link":"https:\/\/pan.wordpress.org\/plugins\/softmixt-relations\/","author":11668785,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.0.0","stable_tag":"trunk","tested":"4.8.28","requires":"4.6","requires_php":"","requires_plugins":"","header_name":"Softmixt Relations","header_author":"Softmixt","header_description":"Simple way for adding related posts .","assets_banners_color":"b5c5d2","last_updated":"2018-05-08 07:48:53","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/wordpress.org\/plugins\/softmixt-relations\/","header_author_uri":"http:\/\/softmixt.com\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":1046,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"":"<p>Not Available<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"1689259","resolution":"128x128","location":"assets"},"icon-256x256.png":{"filename":"icon-256x256.png","revision":"1689260","resolution":"256x256","location":"assets"}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"1689261","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1689241","resolution":"1","location":"assets"},"screenshot-10.png":{"filename":"screenshot-10.png","revision":"1870537","resolution":"10","location":"assets"},"screenshot-11.png":{"filename":"screenshot-11.png","revision":"1870537","resolution":"11","location":"assets"},"screenshot-12.png":{"filename":"screenshot-12.png","revision":"1870537","resolution":"12","location":"assets"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1689241","resolution":"2","location":"assets"},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"1689241","resolution":"3","location":"assets"},"screenshot-4.png":{"filename":"screenshot-4.png","revision":"1689241","resolution":"4","location":"assets"},"screenshot-5.png":{"filename":"screenshot-5.png","revision":"1689241","resolution":"5","location":"assets"},"screenshot-6.png":{"filename":"screenshot-6.png","revision":"1689241","resolution":"6","location":"assets"},"screenshot-7.png":{"filename":"screenshot-7.png","revision":"1727680","resolution":"7","location":"assets"},"screenshot-8.png":{"filename":"screenshot-8.png","revision":"1727682","resolution":"8","location":"assets"},"screenshot-9.png":{"filename":"screenshot-9.png","revision":"1727712","resolution":"9","location":"assets"}},"screenshots":{"1":"<p>The relations are made from a \"Post Relations\" metabox by clicking on \"+\" icon this action will insert you connection into \"Posts related\"<\/p>","2":"<p>If you have a lot of post items or connections you can easily filter by name or post type.<\/p>","3":"<p>You can insert your connection into your post content by using the tinyMCE new button.<\/p>","4":"<p>When you click on tinyMCE connections button you will bring up a new popup where you can set :  \"Container element\", \"Custom container class\", \"Item container element\", \"Item container title element\", \"Custom class item\", \"Show post meta\"<\/p>","5":"<p>After tinyMCE modal submitted  , an a \"shortcode\" automatically is created and  is inserted  into the WP Content.<\/p>","6":"<p>A basic public view of your post relations.<\/p>"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2212,166,2663,22045],"plugin_category":[44,54],"plugin_contributors":[156261,156377],"plugin_business_model":[],"class_list":["post-71177","plugin","type-plugin","status-publish","hentry","plugin_tags-post-relation","plugin_tags-posts","plugin_tags-related","plugin_tags-relations","plugin_category-discussion-and-community","plugin_category-security-and-spam-protection","plugin_contributors-franciscopalacios","plugin_contributors-softmixt","plugin_committers-softmixt"],"banners":{"banner":"https:\/\/ps.w.org\/softmixt-relations\/assets\/banner-772x250.png?rev=1689261","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/softmixt-relations\/assets\/icon-128x128.png?rev=1689259","icon_2x":"https:\/\/ps.w.org\/softmixt-relations\/assets\/icon-256x256.png?rev=1689260","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/softmixt-relations\/assets\/screenshot-1.png?rev=1689241","caption":"<p>The relations are made from a \"Post Relations\" metabox by clicking on \"+\" icon this action will insert you connection into \"Posts related\"<\/p>"},{"src":"https:\/\/ps.w.org\/softmixt-relations\/assets\/screenshot-2.png?rev=1689241","caption":"<p>If you have a lot of post items or connections you can easily filter by name or post type.<\/p>"},{"src":"https:\/\/ps.w.org\/softmixt-relations\/assets\/screenshot-3.png?rev=1689241","caption":"<p>You can insert your connection into your post content by using the tinyMCE new button.<\/p>"},{"src":"https:\/\/ps.w.org\/softmixt-relations\/assets\/screenshot-4.png?rev=1689241","caption":"<p>When you click on tinyMCE connections button you will bring up a new popup where you can set :  \"Container element\", \"Custom container class\", \"Item container element\", \"Item container title element\", \"Custom class item\", \"Show post meta\"<\/p>"},{"src":"https:\/\/ps.w.org\/softmixt-relations\/assets\/screenshot-5.png?rev=1689241","caption":"<p>After tinyMCE modal submitted  , an a \"shortcode\" automatically is created and  is inserted  into the WP Content.<\/p>"},{"src":"https:\/\/ps.w.org\/softmixt-relations\/assets\/screenshot-6.png?rev=1689241","caption":"<p>A basic public view of your post relations.<\/p>"},{"src":"https:\/\/ps.w.org\/softmixt-relations\/assets\/screenshot-7.png?rev=1727680","caption":""},{"src":"https:\/\/ps.w.org\/softmixt-relations\/assets\/screenshot-8.png?rev=1727682","caption":""},{"src":"https:\/\/ps.w.org\/softmixt-relations\/assets\/screenshot-9.png?rev=1727712","caption":""},{"src":"https:\/\/ps.w.org\/softmixt-relations\/assets\/screenshot-10.png?rev=1870537","caption":""},{"src":"https:\/\/ps.w.org\/softmixt-relations\/assets\/screenshot-11.png?rev=1870537","caption":""},{"src":"https:\/\/ps.w.org\/softmixt-relations\/assets\/screenshot-12.png?rev=1870537","caption":""}],"raw_content":"<!--section=description-->\n<p>A simple way to add related posts to another post.<\/p>\n\n<p>You can easily change the public view by using this filter : SFT_related_item_content filter.<\/p>\n\n<pre><code>&lt;?php\n\nadd_filter (\n    'SFT_related_item_content' ,\n    \/**\n     * $itm_container : The current view of related posts .\n     * $connected_relations : Array with all related post items ID's .\n     * $atts : Short code attributes.\n     *\/\n    function ( $itm_container , $connected_relations , $atts )\n    {\n\n        \/\/ The current post id.\n        $post_id = $atts[ 'post_id' ];\n\n        \/\/ Parent related items container element (set on short code).\n        $container               = $atts[ 'container' ];\n\n        \/\/ Parent related items container class element (set on short code).\n        $container_class         = $atts[ 'container_class' ];\n\n        \/\/ Related item container element (set on short code).\n        $item_container          = $atts[ 'item_container' ];\n\n        \/\/ Related item container title element (set on short code).\n        $item_title_container          = $atts[ 'item_title_container' ];\n\n        \/\/ Related item container class element (set on short code).\n        $item_container_class    = $atts[ 'item_container_class' ];\n\n        \/\/ Related item show title (set on short code as string \"true\" or \"false\").\n        $item_show_title         = $atts[ 'item_show_title' ];\n\n        \/\/ Related item show date (set on short code as string \"true\" or \"false\").\n        $item_show_date          = $atts[ 'item_show_date' ];\n\n        \/\/ Related item show author (set on short code as string \"true\" or \"false\").\n        $item_show_author        = $atts[ 'item_show_author' ];\n\n        \/\/ Related item show feature image (set on short code as string \"true\" or \"false\").\n        $item_show_feature_image = $atts[ 'item_show_feature_image' ];\n\n        \/\/ Related item show excerpt image (set on short code as string \"true\" or \"false\").\n        $item_show_excerpt       = $atts[ 'item_show_excerpt' ];\n\n        \/\/ Related item show content image (set on short code as string \"true\" or \"false\").\n        $item_show_content       = $atts[ 'item_show_content' ];\n\n        \/\/ Post related taxonomies container element (set on short code)\n        $item_terms_container       = $atts['item_terms_container'];\n\n        \/\/ Post related taxonomies container class element (set on short code).\n        $item_terms_container_class = $atts['item_terms_container_class'];\n\n        \/\/ Post related taxonomy term item container element (set on short code)\n        $item_term_container        = $atts['item_term_container'];\n\n        \/\/ Post related taxonomy term item container class element (set on short code).\n        $item_term_container_class  = $atts['item_term_container_class'];\n\n        \/\/ you can overwrite  post related item view here ...\n\n        return $itm_container;\n    } ,\n    10 ,\n    3\n);\n<\/code><\/pre>\n\n<h3>Suggestions<\/h3>\n\n<p>If someone has an a idea or suggestion of a new plugin feature I'm glad to hear it and probably will be implemented in the new versions.<\/p>\n\n<!--section=installation-->\n<p>This section describes how to install the plugin and get it working.\n1. Upload the plugin files to the <code>\/wp-content\/plugins\/softmixt-relations<\/code> directory, or install the plugin through the WordPress plugins screen directly.\n2. Activate the plugin through the 'Plugins' screen in WordPress<\/p>\n\n<!--section=faq-->\n<dl>\n<dt>Can I overwrite related items public view ?<\/dt>\n<dd><p>Yes, you can overwrite you related items public view by using  'SFT_related_item_content' filter , check Description section.<\/p><\/dd>\n<dt>Can I show  one related posts to other post ?<\/dt>\n<dd><p>Yes, you can show other post relations by adding an optional \"post_id\" attribute to your shortcode.<\/p><\/dd>\n<dt>Can I easily sort my relations<\/dt>\n<dd><p>Yes, you can sort your posts related connection by dragging items on \"Post Related\" section.<\/p><\/dd>\n<dt>Can I select related post taxonomies as categories, terms ?<\/dt>\n<dd><p>Yes, you can toggle related post and select taxonomies you want to have in front.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>SFT Relations widget added<\/li>\n<li>Custom container item title element added , now we can change post title element type .If none is set then there  will be no element for title.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>First Stable Release<\/li>\n<\/ul>","raw_excerpt":"Simple way for adding related posts .","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pan.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/71177","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pan.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pan.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pan.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=71177"}],"author":[{"embeddable":true,"href":"https:\/\/pan.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/softmixt"}],"wp:attachment":[{"href":"https:\/\/pan.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=71177"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pan.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=71177"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pan.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=71177"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pan.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=71177"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pan.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=71177"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pan.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=71177"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}