Ready to get started?Download WordPress


Grunion Contact Form
Grunion Contact Form under WordPress 3.0.4 exposes shortcode (7 posts)

  1. vosque
    Posted 3 years ago #

    In my widget, I'm using this shortcode:

    [contact-form to="questions@example.com" subject="My Question" show_subject="yes"]

    On my page, I see this:

    [contact-field label="Name" type="name" required="true" /] [contact-field label="Email" type="email" required="true" /] [contact-field label="Website" type="url" /]
    [contact-field label="Subject" type="subject" /]
    [contact-field label="Message" type="textarea" /]

    This happened when I upgraded the most recent contact form plugin. (2.0 according to my plugins page)

  2. vosque
    Posted 3 years ago #

    Oh, it also shows the submit button. When clicked, it sends a blank email to the recipient.

  3. It looks like they're misordering their filters. It should have one to catch the second batch of shortcodes, but it's not. Maybe a priority glitch.

  4. vosque
    Posted 3 years ago #

    I have discovered that it's only a problem when the contact form is used as a widget.

    I add the add_shortcode registration into contact_form_parse and the plugin now functions. That strikes me as s sub-optimal fix.

  5. Joseph Scott
    Plugin Author

    Posted 3 years ago #

    I believe this has already been fixed in the development version of Grunion, so it should be good for the next release (2.1).

    If you want to test the development version the files are available at https://plugins.svn.wordpress.org/grunion-contact-form/trunk/ - standard warnings apply, this is the dev version: it might blow up your site, make your lawn turn brown and steal your dog.

  6. K.Adam White
    Posted 3 years ago #

    I was able to fix this without any modification of the plugin at all--All I needed to do was to remind my theme to parse shortcodes in widgets. I added this to my functions.php:
    add_filter('widget_text', 'do_shortcode');

    and that did the trick.

    Hope that helps, -KA

  7. weknowphilly
    Posted 3 years ago #

    i added the line kadamwhite did to my functions.php and am still having the code show when i try to add a contact form widget. any other ideas? this is literally the one thing keeping me from getting my site live and i'm on a deadline!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic