web_form Shortcode
The web_form shortcode renders a saved POM form by its post ID.
Usage
[web_form id="123"]
Replace 123 with the ID of a published POM form.
Attributes
| Attribute | Default | Accepted values | Purpose |
|---|---|---|---|
id |
0 |
Published POM form post ID | Selects the form to render. A missing or unpublished ID cannot display a usable form. |
Before using the shortcode
- Enable POM Forms under Settings → POM Theme → Forms → General.
- Create and publish the form under Forms.
- Copy its numeric ID.
- Add the shortcode to trusted content.
- Test a signed-out submission.
For normal page editing, add the Form element in the visual builder and choose the form from its selector.
Verification
Test web_form in its relevant logged-in and logged-out states, including validation, success and error feedback. Pay particular attention to id.