• I’m using this plugin to pass aweber form data back to echo on a blog post. One-word variables like “email” post just fine. I can’t apparently use “name” so set up a custom variable in aweber called “first”… problem is aweber turns it into “custom first” – two words.

    So when I add the shortcodes it looks like

    [get_var name="custom first"]

    I’ve tried replacing the space with a %20, with a   and nothing works. Any ideas how to get around this?

    http://wordpress.org/extend/plugins/mindvalley-post-get-variable/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mindvalley

    (@mindvalley)

    Hi Matthew,

    Sorry for the late reply.

    The reason your code is not working is because PHP automatically replaces spaces to underscores when creating the $_GET or $_POST variable array keys.

    So instead of [get_var name=”custom first”] try [get_var name=”custom_first”].

    I’ve also made some updates to the plugin to automatically convert spaces to underscores @ version 1.0.6 … Thanks to your feedback 🙂

    Let me know if you still have any problems.

    Plugin Author Mindvalley

    (@mindvalley)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Mindvalley Post & Get Variables] How to handle space in a variable?’ is closed to new replies.