WordPress.org

Ready to get started?Download WordPress

Forums

Post Snippets
[resolved] Adding PHP to snippet results in parse error (2 posts)

  1. MTWK-Applied
    Member
    Posted 7 months ago #

    Snippet works fine with html and text but creates a parse error when I add in php. Right now, just adding in echo hello for testing purposes.

    Parse error: syntax error, unexpected '<' in /home/content/42/11056642/html/b2bwordpress/wp-content/plugins/post-snippets/lib/PostSnippets/Shortcode.php(98) : eval()'d code on line 1

    Checked off shortcode and php code.

    http://wordpress.org/plugins/post-snippets/

  2. MTWK-Applied
    Member
    Posted 7 months ago #

    Sorry. Figured out don't need to add in <?php

Reply

You must log in to post.

About this Plugin

About this Topic