Displaying Forms
Different ways to add forms to your WordPress site
Displaying Forms
There are several ways to display your forms on your WordPress site.
Shortcode
The most common method. Copy the shortcode from the form editor and paste it anywhere:
[fodo_form id="123"]Shortcode parameters
| Parameter | Description | Example |
|---|---|---|
id | Form ID (required) | id="123" |
title | Show/hide form title | title="false" |
description | Show/hide description | description="true" |
ajax | Enable AJAX submission | ajax="true" (default) |
Full example:
[fodo_form id="123" title="true" description="true" ajax="true"]Block editor (Gutenberg)
- Edit your page or post
- Add a new block by clicking +
- Search for "Fodo Form"
- Select the Fodo Form block
- Choose your form from the dropdown
The block provides a live preview of your form in the editor.
Widget
For sidebars and widget areas:
- Go to Appearance → Widgets
- Add a Shortcode widget to your desired area
- Paste your form shortcode
- Save
PHP template
For theme developers who need to embed forms in template files:
<?php
// Display form with ID 123
echo do_shortcode('[fodo_form id="123"]');
// Or use the function directly
if (function_exists('fodo_forms_render')) {
fodo_forms_render(123);
}
?>Popup/Modal
Fodo Forms doesn't include a built-in popup feature, but you can use any popup plugin:
- Create your form normally
- In your popup plugin, add the form shortcode to the popup content
- Configure your popup trigger (button click, time delay, exit intent, etc.)
Recommended popup plugins:
- Popup Maker (free)
- Elementor Pro popups
- GenerateBlocks Pro
Multiple forms on one page
You can display multiple forms on the same page. Each form operates independently:
[fodo_form id="1"]
<h2>Another Form</h2>
[fodo_form id="2"]Each form has its own AJAX handler, so submissions won't interfere with each other.
Troubleshooting
Form not displaying?
- Verify the form ID is correct
- Check that the form status is "Published"
- Clear any caching plugins
- Check for JavaScript errors in the browser console
Styling conflicts?
If your theme's CSS conflicts with the form, see Form Settings for styling options or Developer Hooks for custom CSS.