• 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

    (@marcusig)

    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.