Support » Plugin: Grunion Contact Form » Grunion Contact Form under WordPress 3.0.4 exposes shortcode

  • In my widget, I’m using this shortcode:

    [contact-form to="" 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)

Viewing 6 replies - 1 through 6 (of 6 total)
  • Oh, it also shows the submit button. When clicked, it sends a blank email to the recipient.

    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.

    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.

    Plugin Author Joseph Scott


    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 – standard warnings apply, this is the dev version: it might blow up your site, make your lawn turn brown and steal your dog.

    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

    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!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Grunion Contact Form under WordPress 3.0.4 exposes shortcode’ is closed to new replies.