Title: Using do_shortcode() in coded templates
Last modified: September 23, 2020

---

# Using do_shortcode() in coded templates

 *  [Ash](https://wordpress.org/support/users/ashbryant/)
 * (@ashbryant)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/using-do_shortcode-in-coded-templates/)
 * Hi all.
 * I’m looking for some advice. I’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.
 * This works and the content displays, BUT the styles applied to that content don’t
   come with it.
 * Does anyone know why? Has anyone done this sort of thing before? I’m sure I’m
   missing something simple.
 * Thanks

The topic ‘Using do_shortcode() in coded templates’ is closed to new replies.

 * ![](https://ps.w.org/elementor/assets/icon-256x256.gif?rev=3444228)
 * [Elementor Website Builder - more than just a page builder](https://wordpress.org/plugins/elementor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/elementor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/elementor/)
 * [Active Topics](https://wordpress.org/support/plugin/elementor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/elementor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/elementor/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Ash](https://wordpress.org/support/users/ashbryant/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/using-do_shortcode-in-coded-templates/)
 * Status: not resolved