[Plugin: Contact Form 7] Pipes not working for checkboxes in v2.2 (7 posts)

  1. twob
    Posted 5 years ago #


    I cannot get the pipes functionality working in the latest version. It seems to ignore whatever's after the |, using the label part for both value and label.

    Running WP 3.0 beta 1 (and BuddyPress, but that shouldn't cause any issues I guess)

    the settings for using pipe is set to true...
    define( 'WPCF7_USE_PIPE', true );

    any ideas?


  2. converting2wp
    Posted 5 years ago #

    I just spent an hour on this. My problem turned out to be an apostrophe in the label. When I changed

    "No. Don't publish my cell phone number in the Directory.|No"


    "No. Do not publish my cell phone number in the Directory.|No"

    it started working like a champ.

    This may not be your problem, but I hope it saves someone else some time.

  3. Takayuki Miyoshi
    Posted 5 years ago #

    I confirmed that there is a bug when you enter apostrophe in label parts of pipes. It will be fixed in the next release.

    Thanks a lot.

  4. WPNinja
    Posted 5 years ago #

    version 2.2.1 - pipes not working at all

    [radio your-zip-code "0000|mrx@example.com" "1111|mistery@example.com"]

    display this:

    <input type="radio" name="your-zip-code" value="0000" />&nbsp;<span class="wpcf7-list-item-label">0000</span>
    <input type="radio" name="your-zip-code" value="1111" />&nbsp;<span class="wpcf7-list-item-label">1111</span>
  5. Takayuki Miyoshi
    Posted 5 years ago #


    [radio your-zip-code "0000|mrx@example.com" "1111|mistery@example.com"]

    It worked on my site.

  6. TrishaM
    Posted 4 years ago #

    I am having the same problem as WPNinja - pipes are not working on a select (drop down) - it is using the label as both label and value

    I have this:

    [select Airport "If Airfare is needed please select Airport|No Airfare"]

    (with of course, a number of other airport options)

    However I get this:

    <option value="If Airfare needed please select Airport">If Airfare needed please select Airport</option>

    I'm using version 2.1.1 and WP version 2.9.1

    I did make sure to add to my wp-config.php
    define( 'WPCF7_USE_PIPE', true );

    What else am I missing?

  7. serge512
    Posted 4 years ago #

    @Takayuki Miyoshi

    i have the same problem but cant find the solution for it. i check the code of the pipe.php and shortcodes.php and in the second the after pipe elements aren't used as the text to show for options. it wont work also for checkboxes and radio buttons.

Topic Closed

This topic has been closed to new replies.

About this Topic