Insert PHP
Insert PHP / WooCommerce conflict (2 posts)

  1. muz0r
    Posted 3 years ago #


    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!


  2. WillBontrager
    Plugin Author

    Posted 3 years ago #

    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.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Insert PHP
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.