PHP Code for posts
[resolved] 2 parameters not working (3 posts)

  1. eoh1
    Posted 2 years ago #

    I am using your plugin on a site and it's working wonderfully well.

    when I create a simple test item with two parameters, I cannot see the second one.

    Here's my little TestTwoVars

    echo $_parameters["var1"];
    echo $_parameters["var2"];

    When I call it inside a page, I call it like this. (I tried to pattern it on your suggestion for 1.1 in

    I go into Text, not Visual portion of editor and type:

    BEFORE 2-var test
    [php snippet=4 param="var1=val1&var2=val2"]
    AFTER 2-var test

    When I view the page, I see my string ABOVE the item and the ending string BELOW the item, but
    val2 doesn't show. Any ideas?

    BEFORE 2-var test
    AFTER 2-var test

    The Back ticks are placed for this message. Not part of the code :}

  2. The.Missing.Code
    Plugin Author

    Posted 2 years ago #

    Hi eoh1,

    Due to html entity encoding val2's key is actually amp;var2.

    This was entirely accidental, and I am about to release a fix for this.

    Thank you for pointing this out.

  3. control_c
    Posted 1 year ago #

    Was this ever fixed? Am still having the same issue.

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