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”
to
“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.
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.
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" /> <span class="wpcf7-list-item-label">0000</span>
<input type="radio" name="your-zip-code" value="1111" /> <span class="wpcf7-list-item-label">1111</span>
WPNinja,
[radio your-zip-code "0000|mrx@example.com" "1111|mistery@example.com"]
It worked on my site.
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?
@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.