Rendering Forms with Shortcodes and PHP
The standard way to display a form is by placing the form shortcode in page or post content. In PHP templates, render the shortcode with WordPress core:
<?php echo do_shortcode('[elzo_form id="123"]'); ?>
Recommended practice
- Prefer shortcode rendering when possible so Elzo Forms can enqueue required front-end assets normally.
- Do not manually include form templates unless you also load the required data and assets.
- Use hooks and filters to customize behavior rather than editing plugin files.