WordPress.org

Ready to get started?Download WordPress

Forums

PHP Code for posts
multi var error on page (2 posts)

  1. cerbero74
    Member
    Posted 9 months ago #

    hi guyz,

    I have this problem...

    I use this:
    [php snippet=2 param="var1=val1&var2=val2"]

    with this code snippet:
    <?php echo $_parameters["var1"]; ?>
    <?php echo $_parameters["var2"]; ?>

    in a widget is all ok, but if I use this in a page, only the first var work..

    ex:

    return on widget
    val1
    val2

    return on page
    val1

    tnx for support!

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

  2. cerbero74
    Member
    Posted 9 months ago #

    ok solved...

    in page this code work fine:

    [php snippet=2 param="var1=val1& amp;var2=val2"]

    "& amp;" instead of "&"

    ("& amp;" without space)

Reply

You must log in to post.

About this Plugin

About this Topic

Tags