{"id":15754232,"date":"2022-06-20T21:01:26","date_gmt":"2022-06-20T21:01:26","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/preselected-post-template\/"},"modified":"2022-06-20T21:01:26","modified_gmt":"2022-06-20T21:01:26","slug":"preselected-post-template","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/preselected-post-template\/","title":{"rendered":"Preselected post template"},"content":{"rendered":"<p>I want to preselect a custom template based on the URL. For example, if I open the URL &#8220;https:\/\/www.suncadiacabinrental.com\/wp-admin\/post-new.php?tmpl=MyCustomTemplate&#8221; I want the template &#8220;MyCustomTemplate&#8221; is preselected instead of &#8220;Default template&#8221;. Is there a way to do that adding a function to functions.php?<\/p>\n<p>Thanks!!<\/p>\n","protected":false},"template":"","class_list":["post-15754232","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15754232","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\/15754232\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=15754232"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}