• Resolved radeko

    (@radeko)


    Hi, after updating the plugin to 2.2.X passing attribute stopped working

    the shortocode:
    [wbcr_php_snippet id="26837" title="Dokumenty a filmy" tag="v-dvd"]

    my code:
    var_dump($tag);

    $tag is set to “wbcr_php_snippet” instead of “v-dvd”

    thank you

    • This topic was modified 7 years ago by radeko.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Temyk

    (@webtemyk)

    Hi.

    There is a conflict with the internal variables of the plugin: $attr, $content, $tag. Therefore, these names of attributes in shortcode not working correctly.

    Foe example:

    [wbcr_php_snippet id="26837" title="Dokumenty a filmy" mytag="v-dvd"]
    var_dump($mytag);
    Thread Starter radeko

    (@radeko)

    Perfect. Thank you.

    apc13100

    (@apc13100)

    Hi, after updating the plugin, my code doesn’t work anymore
    <iframe style="width: 100%; height: 1100px;" src="http://autodiag.jediagnostiquemaferme.com/[insert_php] echo isset($_GET['token'])?'?token='.$_GET['token']:''; [/insert_php]" width="300" height="150"></iframe>

    I get this answer
    Oops! An Error Occurred
    The server returned a “404 Not Found”.
    Something is broken. Please let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused.

    Thanks in advance for your help
    Cédric

    Temyk

    (@webtemyk)

    Hi, @apc13100.

    You had to create your own forum thread.

    You are using the old snippet syntax. It is disabled by default in the new version of the plugin. But you can enable it in Woody Settings.

    I advise you to use the new syntax [wbcr_php_snippet id=”123″]. Documentation

    • This reply was modified 7 years ago by Temyk.
    • This reply was modified 7 years ago by Temyk.
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘after updating passing attribute does not work’ is closed to new replies.