WordPress.org

Forums

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

  1. cerbero74
    Member
    Posted 1 year 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 1 year ago #

    ok solved...

    in page this code work fine:

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

    "& amp;" instead of "&"

    ("& amp;" without space)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • PHP Code for posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags