WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
[resolved] Select recipients with pipes not working (3 posts)

  1. gillespieza
    Member
    Posted 3 years ago #

    I'm trying to use pipes and selectable recipients, having followed the example in the documentation, but the select box is not being displayed at all. This is my contact form code:

    [select your-recipient-1 "Information|info@example.com"
                        "Press|press@example.com"
                        "Webmistress|websmistress@example.com"]
    [text* your-name akismet:author] <label>Your Name*</label><br />
    [email* your-email akismet:author_email] <label>Your Email*</label><br />
    [text your-subject] <label>Subject</label><br />
    <label>Your Message</label><br />
    [textarea your-message]<br />
    [submit class:button "Send"]

    When I look at the source code of the page, that select box is not even generated. What am I doing wrong?

  2. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 3 years ago #

    Maybe it's due to the bug in the old version. The latest version v2.4.1 should work. Try upgrading the plugin.

  3. gillespieza
    Member
    Posted 3 years ago #

    I got it working -- don't know if its related to your bug, but the code didn't like the newlines in the select shortcode. It worked if I put

    [select your-recipient-1 "Information|info@example.com" "Press|press@example.com" "Webmistress|websmistress@example.com"]

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic