Title: using do_shortcode not working
Last modified: March 29, 2021

---

# using do_shortcode not working

 *  [leebaz](https://wordpress.org/support/users/leebaz/)
 * (@leebaz)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/using-do_shortcode-not-working/)
 * I’m trying to use the in-line cofigurator on my homepage content but when I try
   including the following in the template it doesn’t work.
 * add_filter( ‘load_configurator_on_page’, ‘__return_true’ );
    echo do_shortcode(‘[
   mkl_configurator product_id=”64″ ]’);
 * However, if I put the shortcode in a block and then use the_content(); it does
   work.
 * Is there a way to get the php do_shortcode function to work?
    Thanks

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Marc Lacroix](https://wordpress.org/support/users/marcusig/)
 * (@marcusig)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/using-do_shortcode-not-working/#post-14249320)
 * Hi there,
 * `add_filter( ‘load_configurator_on_page’, ‘__return_true’ );` shouldn’t be called
   just before the shortcode, as it’s too late in the process.
 * Instead, add it in your theme’s functions.php (if you’re using a child theme).
 * Marc

Viewing 1 replies (of 1 total)

The topic ‘using do_shortcode not working’ is closed to new replies.

 * ![](https://ps.w.org/product-configurator-for-woocommerce/assets/icon.svg?rev
   =2263690)
 * [Product Configurator for WooCommerce](https://wordpress.org/plugins/product-configurator-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/product-configurator-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/product-configurator-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/product-configurator-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/product-configurator-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/product-configurator-for-woocommerce/reviews/)

## Tags

 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)
 * [template](https://wordpress.org/support/topic-tag/template/)

 * 1 reply
 * 2 participants
 * Last reply from: [Marc Lacroix](https://wordpress.org/support/users/marcusig/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/using-do_shortcode-not-working/#post-14249320)
 * Status: not resolved