{"id":21115,"date":"2015-11-20T14:16:01","date_gmt":"2015-11-20T14:16:01","guid":{"rendered":"https:\/\/docs.wpgeodirectory.com\/?p=21115"},"modified":"2017-05-23T22:02:55","modified_gmt":"2017-05-23T22:02:55","slug":"custom-post-type-shortcodes","status":"publish","type":"post","link":"https:\/\/wpgeodirectory.com\/docs\/custom-post-type-shortcodes\/","title":{"rendered":"Custom Post Type Shortcodes"},"content":{"rendered":"<h3>CPT Listings<\/h3>\n<h4>Shortcode: <span style=\"color: #ff0000;\">[gd_cpt_listings]<\/span><\/h4>\n<h5>Parameters:<\/h5>\n<p><img loading=\"lazy\" src=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2015\/11\/cpt7.png\" alt=\"\" width=\"570\" height=\"173\" class=\"greenborder\" \/><\/p>\n<ul>\n<li><strong>cpt_img_width<\/strong> \u2013 width of the thumbnail for the CPT<\/li>\n<li><strong>cpt_img_height<\/strong> \u2013 height\u00a0of the thumbnail for the CPT<\/li>\n<li><strong>title<\/strong> \u2013 the title for the cpt listings<\/li>\n<li><strong>cpt_exclude<\/strong> \u2013 post types to exclude (default shows all) (examples: \u2018gd_place\u2019 or \u2018gd_place,gd_event\u2019)<\/li>\n<li><strong>cpt_hide_name<\/strong> \u2013 hide CPT name? True or False (default = false)<\/li>\n<\/ul>\n<p>This example shows a widget with the CPT images at 120&#215;90 pixels:<br \/>\n<code>[gd_cpt_listings cpt_img_width=120 cpt_img_height=90]<\/code><\/p>\n<p>This example shows a widget with a custom title, and does not show a link to the gd_place CPT:<br \/>\n<code>[gd_cpt_listings title=\"Browse listings\" cpt_exclude=gd_place]<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Shortcodes specific to the Custom Post Type addon.<\/p>\n","protected":false},"author":1676,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[64],"tags":[],"amp_validity":null,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/posts\/21115"}],"collection":[{"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/users\/1676"}],"replies":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/comments?post=21115"}],"version-history":[{"count":0,"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/posts\/21115\/revisions"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/media?parent=21115"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/categories?post=21115"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/tags?post=21115"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}