Title: Can Shortcode be Coded as PHP in Template?
Last modified: November 3, 2019

---

# Can Shortcode be Coded as PHP in Template?

 *  [kcwebguy](https://wordpress.org/support/users/kcwebguy/)
 * (@kcwebguy)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/can-shortcode-be-coded-as-php-in-template/)
 * Can Shortcode be Coded as PHP in Template?
 * I am wanting to create Elementor sections and then hardcode them into a template
   directly using PHP to call the shortcode.
 * Is this supported with your plugin?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [kcwebguy](https://wordpress.org/support/users/kcwebguy/)
 * (@kcwebguy)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/can-shortcode-be-coded-as-php-in-template/#post-12092340)
 * <?php echo do_shortcode( ‘[your shortcode goes here]’ ); ?>
 *  Plugin Contributor [Hemant Tejwani](https://wordpress.org/support/users/tejwanihemant/)
 * (@tejwanihemant)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/can-shortcode-be-coded-as-php-in-template/#post-12093219)
 * Hi,
 * Yes you can use like this.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Can Shortcode be Coded as PHP in Template?’ is closed to new replies.

 * ![](https://ps.w.org/anywhere-elementor/assets/icon-128x128.png?rev=3417069)
 * [Dynific Addons for Elementor (formerly AnyWhere Elementor)](https://wordpress.org/plugins/anywhere-elementor/)
 * [Support Threads](https://wordpress.org/support/plugin/anywhere-elementor/)
 * [Active Topics](https://wordpress.org/support/plugin/anywhere-elementor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/anywhere-elementor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/anywhere-elementor/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Hemant Tejwani](https://wordpress.org/support/users/tejwanihemant/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/can-shortcode-be-coded-as-php-in-template/#post-12093219)
 * Status: not resolved