• Resolved Phil Emery

    (@noise)


    When I create a test snippet with the code

    <?php 
    echo "poop";

    When I add the shortcode to the page it just displays

    <?php 
    echo "poop";

    I tried to add the closing ?> but the plugin just removes it.

    Is there something to add to the config file or something?

Viewing 1 replies (of 1 total)
  • Plugin Author Shea Bunge

    (@bungeshea)

    Are you adding a Functions snippet or a Content snippet? Functions snippets should use action or filter hooks, or some other sort of callback registration, not directly output content.

    If you want to test a snippet which produces content, add it as a Content snippet.

Viewing 1 replies (of 1 total)
  • The topic ‘PHP not executing – only displays the code on the page’ is closed to new replies.