• I set up a PayPal form with hidden fields in order to collect user information on PayPal and cross-reference what users had paid for a specific item.

    After the most recent updates, the shortcodes I used stopped working within the form. Now, the information saved is actually the text of the shortcode, not the output of the shortcode information.

    An example of the form code looks like this:
    <input name=”os0″ value=”[wpv-current-user]”>

    This used to collect the username, but since the update, the information it collects is the text “[wpv-current-user]” even though, when outside the form, the shortcode works just fine and will display the username.

    Any suggestions?

Viewing 2 replies - 1 through 2 (of 2 total)
  • This is likely related to the recent change to the Shortcode API which you can read about here. The workaround, in your case, would be to update your shortcode to include the value="" and change your input field to something like
    <input name="os0" [wpv-current-user]>

    Thread Starter Amy B

    (@amyrbiddle)

    Thanks for the response. Unfortunately, this shortcode is generated by a plugin and I use it widely, so I absolutely cannot change the output. However, I suppose I could create a NEW shortcode that would output {value=”[wpv-current-user]”}… or would that still output the way it reads now, and just layer the problem without solving it?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Inserting shortcodes into forms’ is closed to new replies.