Support » Plugin: Insert PHP » Insert PHP / WooCommerce conflict

  • Hi,

    Plugin works great on any WordPress page. However, I have 5 WP pages that are linked to WooCommerce and use its shortcodes. When I add [insertphp]echo “test”;[/insertphp] to any of these pages, the code is being ignored and it outputs the entire statement.

    Is it possible that there is a conflict between the WooCommerce shortcodes and [insertphp][/insertphp]? How can I get php to work on WP pages that are associated/embedded in WooCommerce?

    Thank you!

Viewing 1 replies (of 1 total)
  • Plugin Author WillBontrager


    What you describe does indicate there is a conflict somewhere.

    Verify you used the correct code. There should be an underscore character within the tag, [insert_php] instead of [insertphp]. I mention it because in your question the tags don’t have the underscore character.

    If the issue persists with:

    echo "test";

    Then let me suggest not using Insert PHP on WooCommerce pages (I’m assuming WooCommerce is more important than Insert PHP).

    My hunch is WooCommerce grabs the entire page content and, because it doesn’t recognize [insert_php] as a valid shortcode, it just leaves it as is. But that’s just a hunch.


Viewing 1 replies (of 1 total)
  • The topic ‘Insert PHP / WooCommerce conflict’ is closed to new replies.