{"id":17129,"date":"2020-04-13T08:11:06","date_gmt":"2020-04-13T08:11:06","guid":{"rendered":"https:\/\/ampforwp.com\/tutorials\/?post_type=ht_kb&#038;p=17129"},"modified":"2020-04-27T07:58:22","modified_gmt":"2020-04-27T07:58:22","slug":"how-to-override-custom-taxonomy-template-in-amp","status":"publish","type":"ht_kb","link":"https:\/\/ampforwp.com\/tutorials\/article\/how-to-override-custom-taxonomy-template-in-amp\/","title":{"rendered":"How to override Custom Taxonomy Template in AMP"},"content":{"rendered":"\n<p>The following are the steps to create a Custom Template for the custom taxonomy<\/p>\n\n\n\n<p><strong>Step 1:<\/strong><\/p>\n\n\n\n<p>Create a new file with the name \u201c<strong>taxonomy-(custom post type slug).php<\/strong>\u201d in your AMP theme Framework directory.<\/p>\n\n\n\n<p>The directory will look like<\/p>\n\n\n\n<p>ex:wp-content\\plugins\\amp-theme-framework<\/p>\n\n\n\n<p>Taxonomy: taxonomy.php<br><code>taxonomy-$taxonomy.php<\/code><\/p>\n\n\n\n<p><strong>Step 2:<\/strong><\/p>\n\n\n\n<p>Once you create the file then in that file you need to do all the changes which you want and that customized file will appear for all your custom post types.<\/p>\n\n\n\n<h4>To make it easy, we have created a video also<\/h4>\n\n\n\n<figure class=\"wp-block-video\"><video controls src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/05\/Recording-28.mp4\"><\/video><\/figure>\n\n\n\n<p><strong>That\u2019s it for this tutorial!<\/strong><\/p>\n\n\n\n<p>We hope it helped you. If you have any feedback or questions, then please share them in the comments section below.<\/p>\n<div id=\"div-1\" class=\"hkb-feedback\">\n\t\t\t<strong class=\"ht-mobile-exit__title\">Ask your Questions Directly!<\/strong><br>\n\t\t\t<div class=\"hkb_widget_exit__content\" style=\"font-size: 14px;\">If you can't find the solutions in this article, then just ask us in the comments and we will answer it for you!<\/div>\n\t\t\t<a href=\"https:\/\/ampforwp.com\/support\/#contact\" id=\"button\" target=\"_blank\" rel=\"noopener noreferrer\"><button>Yes, I have a Question<\/button><\/a>\n\t\t<\/div>","protected":false},"excerpt":{"rendered":"<p>The following are the steps to create a Custom Template for the custom taxonomy Step 1: Create a new file with the name \u201ctaxonomy-(custom post type slug).php\u201d in your AMP theme Framework directory. The directory will look like ex:wp-content\\plugins\\amp-theme-framework Taxonomy: taxonomy.phptaxonomy-$taxonomy.php Step 2: Once you create the file then in&#8230;<\/p>\n","protected":false},"author":18,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":[],"ht-kb-category":[186],"ht-kb-tag":[],"_links":{"self":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/17129"}],"collection":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/comments?post=17129"}],"version-history":[{"count":1,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/17129\/revisions"}],"predecessor-version":[{"id":17131,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/17129\/revisions\/17131"}],"wp:attachment":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/media?parent=17129"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb-category?post=17129"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb-tag?post=17129"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}