{"id":94,"date":"2017-09-25T13:23:51","date_gmt":"2017-09-25T13:23:51","guid":{"rendered":"https:\/\/demo.themeinprogress.com\/custom-script-manager-pro\/?page_id=94"},"modified":"2021-06-21T17:01:53","modified_gmt":"2021-06-21T17:01:53","slug":"how-to-load-a-script-inside-a-custom-taxonomy","status":"publish","type":"page","link":"https:\/\/demo.themeinprogress.eu\/content-snippet-manager-pro\/how-to-load-a-script-inside-a-custom-taxonomy\/","title":{"rendered":"How to load a snippet inside a custom taxonomy"},"content":{"rendered":"<p>You can include or exclude each snippet from specific taxonomies or categories, our system generate automatically a list of all registered taxonomies, that means that our plugin is compatible with all plugins that use a custom taxonomy.<\/p>\n<p>Below are a list of more common custom taxonomies:<\/p>\n<p><strong>Category<\/strong>, WordPress default post categories<br \/>\n<strong>Post_tag<\/strong>, WordPress default post tags<br \/>\n<strong>Post_format<\/strong>, WordPress default post formats<br \/>\n<strong>Product_cat<\/strong>, WooCommerce product categories<br \/>\n<strong>Product_tag<\/strong>, WooCommerce product tags<\/p>\n<p>Note that, you can include or exclude only the custom taxonomy page, something like<br \/>\nhttps:\/\/demo.themeinprogress.com\/custom-snippet-manager-pro\/product-category\/clothing\/<\/p>\n<p>Actually you can&#8217;t use this feature to filter your posts or custom post types.<\/p>\n<p>1. Create a new snippet<br \/>\n2. Choose the product match value.<br \/>\n3. Select which custom taxonomy you want to include or exclude (depending by the chosen match value)<br \/>\n4. Put your code and click on <strong>Save<\/strong> button.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-181\" src=\"https:\/\/demo.themeinprogress.com\/custom-script-manager-pro\/wp-content\/uploads\/2017\/09\/csmp-custom-taxonomies-script.png\" alt=\"\" width=\"890\" height=\"472\" srcset=\"https:\/\/demo.themeinprogress.eu\/content-snippet-manager-pro\/wp-content\/uploads\/2017\/09\/csmp-custom-taxonomies-script.png 890w, https:\/\/demo.themeinprogress.eu\/content-snippet-manager-pro\/wp-content\/uploads\/2017\/09\/csmp-custom-taxonomies-script-400x212.png 400w, https:\/\/demo.themeinprogress.eu\/content-snippet-manager-pro\/wp-content\/uploads\/2017\/09\/csmp-custom-taxonomies-script-300x159.png 300w, https:\/\/demo.themeinprogress.eu\/content-snippet-manager-pro\/wp-content\/uploads\/2017\/09\/csmp-custom-taxonomies-script-768x407.png 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Here a videotutorial that will help you to load a snippet inside a custom taxonomy.<\/p>\n<p><iframe loading=\"lazy\" title=\"Content Snippet Manager, how to load a snippet inside a custom taxonomy\" width=\"840\" height=\"630\" src=\"https:\/\/www.youtube.com\/embed\/YGAmcZOVD7g?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can include or exclude each snippet from specific taxonomies or categories, our system generate automatically a list of all registered taxonomies, that means that our plugin is compatible with all plugins that use a custom taxonomy. Below are a list of more common custom taxonomies: Category, WordPress default post categories Post_tag, WordPress default post &hellip; <a href=\"https:\/\/demo.themeinprogress.eu\/content-snippet-manager-pro\/how-to-load-a-script-inside-a-custom-taxonomy\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to load a snippet inside a custom taxonomy&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-94","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/demo.themeinprogress.eu\/content-snippet-manager-pro\/wp-json\/wp\/v2\/pages\/94","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/demo.themeinprogress.eu\/content-snippet-manager-pro\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/demo.themeinprogress.eu\/content-snippet-manager-pro\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/demo.themeinprogress.eu\/content-snippet-manager-pro\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/demo.themeinprogress.eu\/content-snippet-manager-pro\/wp-json\/wp\/v2\/comments?post=94"}],"version-history":[{"count":8,"href":"https:\/\/demo.themeinprogress.eu\/content-snippet-manager-pro\/wp-json\/wp\/v2\/pages\/94\/revisions"}],"predecessor-version":[{"id":263,"href":"https:\/\/demo.themeinprogress.eu\/content-snippet-manager-pro\/wp-json\/wp\/v2\/pages\/94\/revisions\/263"}],"wp:attachment":[{"href":"https:\/\/demo.themeinprogress.eu\/content-snippet-manager-pro\/wp-json\/wp\/v2\/media?parent=94"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}