Elzo Forms logo
  • Home
  • PRO
  • Docs
Account
Buy Now
Documentation / Developer Guide

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.

On this page

Recommended practice

Documentation

All documentation

User Guide

Developer Guide

Developer Overview Rendering Forms with Shortcodes and PHP Template Overrides PHP Hooks and Filters Reference Submission Lifecycle Hooks Custom Validation and Empty Values Email Customization Hooks Field Type Filters Build a Custom Field Field API Reference Module Development JavaScript Hooks and Events API Admin JavaScript Events Automation Developer Overview Custom Automation Actions Custom Automation Conditions Automation Lifecycle Hooks Automation Merge Tags Automation Logs for Developers Webhook Integrations for Developers Developer Security Best Practices

Related docs

Multi-Step Forms Field Settings Free vs PRO Create and Publish Your First Form Get Started with Elzo Forms

Help resources

Documentation home Community support
Elzo Forms logo
Elzo Forms is a WordPress Form plugin with free and PRO versions. It is a powerful tool for creating forms and managing submissions.
  • Elzo Forms
    • PRO
    • Pricing
  • Help
    • Docs
  • Account
    • Login
  • Privacy
  • Terms
  • Refunds
  • License Terms
  • Payment
  • Contact
© 2026 Elzo Forms. All rights reserved.
 
  • Home
  • PRO
  • Docs
Contact us