[wp-hackers] Fwd: [GSoC - 2014] Introducing Myself

Nicholas Ciske nl at thoughtrefinery.com
Mon Feb 24 15:27:01 UTC 2014


I'd not advise pursuing this approach to shortcodes...

A single shortcode to output the form by id or name is the current (and best) practice.

See: every other form plugin available for WordPress.

Running dozens of short codes to output a form that's already been designed on the backend? That's going to use a lot of resources -- for what gain? Not to mention how brittle this approach is... e.g. can I intermix other shortcodes within a form? What if those also output a <form> element, breaking your form?

PS- Always prefix your shortcodes to avoid collisions with other plugins & themes.

_________________________
Nick Ciske
http://thoughtrefinery.com/
@nciske	

On Feb 24, 2014, at 1:59 AM, Deven Bansod <devenbansod.bits at gmail.com> wrote:

> For Example : The UI for the Form Making will generate this sort of Short
> Code which will be displayed as a Proper Form in the Form Page where ever
> the Form is Placed.
> 
> "
> [form_start]
> 
> [element type='text' label='Name'/]
> [element type='text' label='Gender' option='M,F'/]  // Will produce two
> Radio Buttons with M and F as Labels and Original Label as Gender
> 
> [/form_start]
> 
> "



More information about the wp-hackers mailing list