{"id":6740359,"date":"2015-11-11T23:37:08","date_gmt":"2015-11-11T23:37:08","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/allow-linking\/"},"modified":"2016-08-30T20:10:35","modified_gmt":"2016-08-30T20:10:35","slug":"allow-linking","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/allow-linking\/","title":{"rendered":"Allow linking"},"content":{"rendered":"<p>Hey there,<\/p>\n<p>It would be great if this plugin could have the option to link:<\/p>\n<p>a) The widget title to the selected category or simply to a custom specified URL<br \/>\nb) The post content for each slide to the single post page<\/p>\n<p>I added (b) by editing widget-post-content.php as follows:<\/p>\n<pre><code>line 105:                $output .= &#039;&lt;div class=&quot;tr-post-content&quot;&gt;&lt;a href=&quot;&#039; . get_permalink($postID) . &#039;&quot;&gt;&#039;;\nline 121:\t  \t\t\t$output .= &#039;&lt;\/a&gt;&lt;\/div&gt;&#039;;<\/code><\/pre>\n<p>However conditionals would need to be added to make it a GUI option.<\/p>\n<p>For (a) to work I think there&#8217;d need to be some rearranging of code so that the         $postCat logic comes before the $title output.<\/p>\n<p>-Jordan<\/p>\n<p>https:\/\/wordpress.org\/plugins\/tr-post-slider-widget\/<\/p>\n","protected":false},"template":"","class_list":["post-6740359","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6740359","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6740359\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=6740359"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}