You publish a direct email address on your contact page, and within a few days your inbox is flooded with automated sales pitches. Worse, actual client enquiries get buried under the noise or filtered into spam. Plain mailto links give you no control over incoming data, and writing custom PHP scripts to handle form requests takes more time than most site owners have.
A reliable contact form solves this by collecting structured details right where your visitors expect to find them. Using a wordpress form shortcode is the cleanest method to embed form in WordPress pages because it separates your form settings from your theme templates. In this guide, I will walk you through building your form, grabbing the generated shortcode form snippet, and placing it anywhere on your site without touching PHP code.
How the WordPress Form Shortcode Works
WordPress shortcodes are small reference tags enclosed in square brackets that instruct your theme to render dynamic content. Instead of hardcoding HTML input tags, labels, and validation scripts into your page templates, you configure the form inside your WordPress dashboard. The plugin saves your fields, design choices, and notifications in the database, assigning the form a unique numeric ID.
When you place the generated shortcode on a page, WordPress calls the plugin during page rendering, retrieves your saved form configuration, and outputs the complete form. Because the shortcode acts as an address pointer rather than static content, any change you make to the form in the dashboard reflects immediately across every post or page where the shortcode sits. You never need to update multiple pages just to modify a single field or adjust an email alert.
The standard syntax for Diviniket WP Forms looks like this:
[divismfo_form id="123"]
Please note that 123 is only an example ID. Your actual shortcode will use the unique number created when you save your specific form.
Step-by-Step: How to Generate and Embed Your Form
Setting up your form does not require any programming experience. The plugin interface guides you through field selection, basic styling, and shortcode generation directly within your WordPress admin screen. Here is the exact walkthrough to follow:
- Open the Divine Forms section in your WordPress dashboard.
- Select the option to add a new form to open the builder canvas.
- Configure the available fields for your project. You can add a dedicated Name field, an Email field, an international phone input with a country-flag selector and automatic country code prefixing, or a file upload field if you need visitors to attach documents.
- Adjust the supported design settings, including form width, form alignment, and input colors, so the form matches your website style.
- Save the form to store the configuration in your database.
- Copy the generated shortcode provided by the plugin after saving, which will resemble
[divismfo_form id="123"]with your specific form ID. - Open the WordPress page or post where you want the form to appear.
- Paste the shortcode into the content area using a dedicated shortcode element or block, then publish or update your page.
After saving the page, open it in an incognito browser tab. Submit a test entry to confirm that the layout displays properly and that the submission processes without errors.
Embedding the Shortcode Across Different Page Builders
Website owners use different editing tools across WordPress, and a shortcode form provides wide flexibility because it works inside almost every standard content area. You do not need dedicated add-on extensions for different layout builders.
If you use the default WordPress Block Editor (Gutenberg), add a standard Shortcode block to your page layout. Paste your snippet into the text field and update the page. The block editor runs the shortcode during page rendering, letting you position the form inside columns, group containers, or full-width page sections as needed.
For sites running visual builders like Elementor, Beaver Builder, or Divi, the process is equally direct. Search for the Shortcode widget or Code module in your builder's panel, drag it into your desired column, and paste the exact shortcode. Because the plugin processes form submissions via AJAX, the form submits in the background without triggering a full page reload, keeping the user experience smooth regardless of the builder you choose.
Styling Your Form to Match Your Theme
Forms often look out of place when their widths, borders, and typography clash with the surrounding design. Instead of forcing you to write custom CSS rules for basic adjustments, the plugin includes a built-in style customizer right in the dashboard.
You can adjust the form width, form height, and form alignment to make sure the form sits neatly inside your page columns. For color adjustments, you have direct controls over background opacity, input text color, placeholder color, and placeholder transparency. These settings help maintain readability against dark, light, or patterned backgrounds. To see how these layout settings work in detail, explore the documentation for our visual form builder.
Keep in mind that while these controls give you command over alignment and core colors, the plugin is not a full theme generator. Your active WordPress theme still controls base font families and global typography rules, which helps maintain a cohesive look across your entire site.
Managing Submissions, Notifications, and Integrations
Collecting entries through an embedded form is only helpful if you can access and process that information easily. Diviniket WP Forms provides several native tools for handling submissions once a visitor clicks the submit button.
All submitted entries are stored directly in plugin-owned database tables inside WordPress. You can review and manage every submission by navigating to Divine Forms > All Entries in your dashboard. This local storage ensures you have a reliable record of client enquiries even if your mail server experiences temporary delivery delays. You can also configure email notification settings to alert administrators whenever a user submits a form, or send confirmation messages to the submitter.
If you prefer reviewing leads in a spreadsheet rather than logging into WordPress every morning, you can send submissions straight to a Google spreadsheet. By configuring a Google service account and OAuth credentials, the plugin can validate your spreadsheet metadata, match sheet headers, and append new rows automatically when submissions occur. You can read the setup requirements on the Google Sheets integration page.
If you prefer sending visitors to a custom thank-you page after they submit, the plugin also includes redirect settings. You can define a specific URL where users are redirected instead of displaying the standard on-page confirmation message.
Limitations and Practical Considerations
Honest planning requires knowing what a tool cannot do. Diviniket WP Forms is designed for clean contact forms, enquiry forms, and lead collection, but it does not support conditional logic, multi-step forms, or automated calculations. If your project requires complex questionnaire branching where questions hide or display based on previous answers, this plugin is not intended for that purpose.
Furthermore, earlier versions included features that were subsequently retired. As of update 1.2.1, built-in integrations for WhatsApp, PDF generation, and payment gateways were removed. The plugin does not process payments or generate PDF documents.
Spam protection also requires realistic expectations. The plugin features built-in Honeypot protection, which catches automated bots without bothering real visitors. For additional defense, you can configure external providers including Google reCAPTCHA v2, Cloudflare Turnstile, or hCaptcha. However, no security tool catches every single spam submission. You can review the configuration steps on our spam protection options page.
FAQ
Where do I find the form ID for my shortcode?
You can find the form ID inside the Divine Forms dashboard area after you save your form. The plugin generates the complete shortcode with your specific numeric ID, so you can simply copy and paste the snippet without typing it manually.
Can I embed the same shortcode on multiple pages?
Yes, you can place the same shortcode across multiple pages, blog posts, or widget areas. Every submission from those different locations will funnel into the same entry list in your dashboard and sync to your connected spreadsheet if active.
Will my shortcode form work if I change my WordPress theme?
Yes, shortcodes are handled entirely by the plugin rather than your theme files. If you change your active theme, your form will remain visible and functional, though you may want to check your form style settings to ensure alignment and colors match your new design.
Can visitors upload files through the form?
Yes, the plugin supports a dedicated file upload field that lets visitors attach documents or images to their submission. The uploaded file reference is recorded inside the entry log in your dashboard and can also be sent to Google Sheets when synchronization is enabled.
If you prefer watching a visual setup instead of reading steps, check out the demonstrations on our YouTube tutorial channel. If you have questions about current features or upcoming developments, feel free to connect with me directly on my Aditya Singh on LinkedIn profile.