WordPress.org

Ready to get started?Download WordPress

Forums

Insert PHP
Insert PHP / WooCommerce conflict (2 posts)

  1. muz0r
    Member
    Posted 9 months ago #

    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!

    http://wordpress.org/extend/plugins/insert-php/

  2. WillBontrager
    Member
    Plugin Author

    Posted 9 months 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:

    [insert_php]
    echo "test";
    [/insert_php]

    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.

    Will

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.