WordPress.org

Ready to get started?Download WordPress

Forums

PHP Execution
PHP tags get 'commented' out (4 posts)

  1. mlarson154
    Member
    Posted 3 years ago #

    When I update the page/post, the php tags <?php and ?> get turned into HTML comments, namely: <!--?php and ?-->

  2. mlarson154
    Member
    Posted 3 years ago #

    Nevermind. It would help if I were the author of the post. :) My bad.

  3. dhempy
    Member
    Posted 2 years ago #

    Any more info on this? I am seeing the same problem with php-execution plugin. I can write this in the HTML editor...

    <?php
    $voucher = intval($_GET["voucher"]);
    if ($voucher) {
    echo "You are redeeming this voucher: [$voucher]\n";
    }
    ?>

    (Note - not sure if the formatting above will carry through in this forum, but assume it's nice, tidy, functional PHP)

    ...and after switching to Visual and back to HTML, it becomes:

    <!--?php $voucher = intval($_GET["voucher"]); if ($voucher) { echo "You are redeeming this voucher: [$voucher]\n"; } ?-->

    (In case the formatting is changed in this forum, the significant difference is that the entire php block has been converted into an HTML comment. Of further annoyance, it's been wrapped into a single line of text.)

    I am running a fairly clean install of WordPress v3.2.1 and v1.0.0 of PHP-Execution.

    I see this plugin is now two years old, with no updates. Should I simply use another PHP plugin? Any suggestions?

    Thanks,
    -dave

  4. mlarson154
    Member
    Posted 2 years ago #

    Unfortunately, no. I was trying something that wasn't really an urgent issue and when I couldn't get the plugin to work the way I wanted, I moved on to other things and forgot about it.

    My next step will be to try some of the other PHP insertion plugins, but I haven't tried any.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic