Support » Plugin: PHP Code for posts » Parameters not working with last version of plugin and WP

  • Resolved laurent

    (@steamleadstudio)


    Hi
    I can’t manage to get parameters values in my snippets.

    For exemple

    Code snippet:

    <?php
    echo "TEST1".$_parameters["test"];
    echo "TEST2".$test;
    ?>

    PHP shortcode used

    <h1>blabla1</h1>
    [php snippet=8 param=test=hello]
    <h1>blabla2</h1>
    [php snippet=8 param="test=hello"]

    page result

    blabla1
    
    TEST1TEST2
    blabla2
    
    TEST1TEST2

    do you have any idea of what’s wrong ?
    thanks

    https://wordpress.org/plugins/php-code-for-posts/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jamie Fraser

    (@thejfraser)

    Hi Laurent,

    My apologies, it appears that when I was optimising code I disabled the parameters.

    I have re-enabled them and the issue is fixed in 2.1.2 (on its way up now)

    Cheers

    laurent

    (@steamleadstudio)

    Hi Jamie
    No need to apology. Mystake is human.

    All works fine whith the last update

    Thanks for your quick response.
    Nice job

    regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Parameters not working with last version of plugin and WP’ is closed to new replies.