Support » Plugin: WP UI - Tabs, Accordions, Sliders » [Plugin: WP UI – Tabs, Accordions, Sliders] WP UI with contact form 7 (shortcodes inside the contact

  • Resolved zouper

    (@zouper)


    Hi,
    There seems to be a problem with contact forms 7. I cannot add a shortcode IN the contact form. SO what I want to do is have a spoiler inside the contact form. There are checkboxes which have a text under them and I want to hide that content to be revealed upon click. When I insert teh shortcode, all I see in the end is…the shortcode.

    Any ideas on that?

    http://wordpress.org/extend/plugins/wp-ui/

Viewing 3 replies - 1 through 3 (of 3 total)
  • manage to solve it with an add_filter from the creator of contact forms. You just have to add this line:

    add_filter( ‘wpcf7_form_elements’, ‘mycustom_wpcf7_form_elements’ );

    function mycustom_wpcf7_form_elements( $form ) {
    $form = do_shortcode( $form );

    return $form;
    }

    in the functions.php file in the contact form 7 plugin (plugins>editor>select the contact form 7 plugin from the drop down menu on the right top side>find function.php file+edit)

    Then everything works like a charm!

    Have a nice day!

    p.s.: I do not consider anyone stupid, just some of us are just beginning so I thought better to play stupid rather than consider everyone knows everything upon birth.

    Plugin Author kavingray

    (@kavingray)

    Hi Zouper,

    Glad you sorted out this issue, anyway my two cents – You can also implement the wp ui structures with HTML, which i think, would be more comfortable than editing functions.php . Below paste contains the sample markup for each widget.

    http://pastebin.com/Axxs0TzK

    Apologies for the late reply.

    manakuke

    (@manakuke)

    Thanks, kavin! I’m using WordPress Form Manager, which was not submitting any forms in IE9. implementing the plugin using the HTML structures vs the shortcode solved the problem for me.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: WP UI – Tabs, Accordions, Sliders] WP UI with contact form 7 (shortcodes inside the contact’ is closed to new replies.