{"id":5992833,"date":"2015-04-08T15:55:10","date_gmt":"2015-04-08T15:55:10","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/removing-slider-from-custom-post\/"},"modified":"2016-08-24T14:32:10","modified_gmt":"2016-08-24T14:32:10","slug":"removing-slider-from-custom-post","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/removing-slider-from-custom-post\/","title":{"rendered":"removing slider from custom post"},"content":{"rendered":"<p>Hi, I have added this function to single.php<br \/>\n&#8216;&lt;?php<br \/>\n    echo do_shortcode(&#8220;[metaslider id=7435]&#8221;); \/\/enter meta slider at top of posts<br \/>\n?&gt;&#8217;<br \/>\nand it has been working great as I wanted the slider on all posts. Now I have a custom post type that I would like the slider not to show on. Does anyone know how I can add some parameters to this function to restrict the metaslider from showing on that type of post?<br \/>\nThanks<\/p>\n<p>https:\/\/wordpress.org\/plugins\/ml-slider\/<\/p>\n","protected":false},"template":"","class_list":["post-5992833","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5992833","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\/5992833\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=5992833"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}