Support » Plugin: Allow PHP in Posts and Pages » can't jump in and out of PHP after [/php]

  • Jeffw400

    (@jeffw400)


    I don’t know if this is a bug or the plugin just doesn’t work this way, but if I have code like the below, the php stops working after the first [/php]. So in the below, we never get the email returned from the database. But it does work if I keep it all in the intial [php][/php]. I really need to be able to jump in and out of php in my code….

    [php
    Print “[strong]Name: [/strong]”;
    echo $current_user->display_name;
    echo “[br /][br /]”;
    [/php]

    test

    [php]
    Print “[strong]email: [/strong]”;
    echo $current_user->email;
    echo “[br /][br /]”;
    [/php]

    https://wordpress.org/plugins/allow-php-in-posts-and-pages/

  • The topic ‘can't jump in and out of PHP after [/php]’ is closed to new replies.