{"id":13944789,"date":"2021-01-22T19:19:59","date_gmt":"2021-01-22T19:19:59","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/default-template-14\/"},"modified":"2021-01-22T19:19:59","modified_gmt":"2021-01-22T19:19:59","slug":"default-template-14","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/default-template-14\/","title":{"rendered":"Default template"},"content":{"rendered":"<p>Hi guys &#8211; tldr;<br \/>\nHow do you set the default template selection when adding a new post ??<br \/>\nSee screenshot : https:\/\/ibb.co\/fpNPnz1<\/p>\n<p>I have used the Custom Post Type UI plugin to create a custom post called :<br \/>\nTherapists<br \/>\nI used Advanced Custom Fields plugin to create the input fields. <\/p>\n<p>The Rules for these fields is :<br \/>\nShow this field group if :<br \/>\nPost Type is equal to Therapist<\/p>\n<p>I created a template file in my child theme called tpl-therapist.php :<br \/>\n\/*<br \/>\nTemplate Name: Therapist Layout<br \/>\nTemplate Post Type: Therapist<br \/>\n*\/<\/p>\n<p>When I Add new &#8211;&gt; Therapist I want the Page Attributes &#8211;&gt; Template to default to Therapist.<\/p>\n<p>How can I do this ? <\/p>\n","protected":false},"template":"","class_list":["post-13944789","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/13944789","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\/13944789\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=13944789"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}