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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter mlarson154

    (@mlarson154)

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

    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

    Thread Starter mlarson154

    (@mlarson154)

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP tags get 'commented' out’ is closed to new replies.