{"id":13442449,"date":"2020-09-23T08:09:35","date_gmt":"2020-09-23T08:09:35","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/using-do_shortcode-in-coded-templates\/"},"modified":"2020-09-23T08:09:35","modified_gmt":"2020-09-23T08:09:35","slug":"using-do_shortcode-in-coded-templates","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/using-do_shortcode-in-coded-templates\/","title":{"rendered":"Using do_shortcode() in coded templates"},"content":{"rendered":"<p>Hi all.<\/p>\n<p>I&#8217;m looking for some advice. I&#8217;m building a custom post type with custom archive and taxonomy templates (manually coded, so not in Elementor), but I want to include some content from a template into the templates, so I have done that via do_shortcode() and called in the shortcode of the template.<\/p>\n<p>This works and the content displays, BUT the styles applied to that content don&#8217;t come with it.<\/p>\n<p>Does anyone know why? Has anyone done this sort of thing before? I&#8217;m sure I&#8217;m missing something simple.<\/p>\n<p>Thanks<\/p>\n","protected":false},"template":"","class_list":["post-13442449","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/13442449","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\/13442449\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=13442449"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}