Shortcodes within the form post type
-
Thank you for this useful plugin.
I want to add a form where the fields are shown a few at a time in a tabbed interface using my tabby responsive tabs plugin which adds the tabs via shortcodes.
I found that shortcodes were not being processed when added to the form post type, however after reviewing the code, a simple change does allow the shortcodes to be processed:
line 434 of the ‘class-cpt-wplf-form.php’ file – change:
return $output;
to
return do_shortcode( $output );
This seems to solve my issue without any apparent negative side effects on my test site. i can group the form fields in the tabs and everything seems to work.
It’d be great if you would consider adding this change to the wp libre form plugin – if you can’t see any downside to doing so.
- The topic ‘Shortcodes within the form post type’ is closed to new replies.