Note: custom forms are part of the Newsletter plugin. The AI form designer requires an AI connector configured in WordPress, see Requirements.
Custom forms let you create as many subscription forms as you need, each one with its own design, lists, opt-in mode and welcome email. Every form is stored by the plugin and can be placed anywhere on your site with a shortcode.
A form can be designed in two ways: by writing the HTML and CSS directly in the code editor, or by describing what you want to an AI assistant in the AI form designer, which writes the code for you and shows a live preview.
Table of contents
- Requirements
- Creating a form
- Form settings
- Designing with the AI form designer
- Designing with the code editor
- The welcome email
- Adding the form to your site
- FAQ and best practices
Requirements
The code editor works on any installation, no extra configuration is needed.
The AI form designer uses the WordPress AI client to talk to a language model. You need at least one AI connector installed and configured, for example a provider plugin for Anthropic, OpenAI or Google with a valid API key.
When no connector is available, the designer page shows the message “An AI connector is required to use this form builder” and the chat cannot be used. You can still switch to the code editor.
Requests to the AI provider are billed by the provider on your account, not by The Newsletter Plugin.
Creating a form
Go to Newsletter > Forms and open the Custom tab. Here you find the list of your forms with their id and the shortcode to use for each of them.
Click New form: a form is created with a basic set of fields (email, first name, privacy acceptance and the subscribe button) and you are taken to its settings.

Each form has three panels, reachable from the menu at the top of the page:
- Settings: name, lists, opt-in mode and welcome page
- Design: the form fields and their style, with the code editor or the AI designer
- Welcome email: the email sent to new subscribers coming from this form
Form settings
The settings panel controls what happens when someone subscribes using the form.

- Name: used only in the admin to recognize the form.
- Add subscribers to these lists: the lists every subscriber coming from this form is added to. These lists are assigned automatically, the subscriber doesn’t need to pick them.
- Opt-in: Default uses the opt-in mode set in the main subscription configuration; you can force Double opt-in (a confirmation email is sent) or Single opt-in for this form only.
- Welcome page: the page shown after the subscription. Default uses the standard plugin message.
- Email series: when the Autoresponder addon is installed, you can start one or more series for the subscribers of this form.
At the bottom you find Delete, to remove the form, and Reset, which restores the form fields to the basic set. Reset cannot be undone.
Designing with the AI form designer
The AI form designer is a chat: you write what you want, the AI changes the form and the preview on the right is updated immediately.
To open it, go to the Design panel. If the form is in the code editor, click Switch to AI editor.
Writing requests
Describe the form as you would to a designer. Some examples:
- “Add the last name field and the privacy checkbox”
- “Put first name and last name on the same line”
- “Use a dark background, white text and a rounded orange button”
- “Make it compact, for a sidebar”
- “Change the button label to Join the club”
The AI keeps the fields already in the form and changes only what you ask. Under each answer you find a short explanation of what was done, or why something could not be done.

The conversation has memory: you can refine the result step by step (“a bit smaller”, “now remove the border”) without repeating the whole request.
Starting from an image
Click the paperclip icon to attach an image, for example a screenshot of a form you like or a mockup from your designer, and ask the AI to reproduce it. Images up to 5 MB are accepted.
Fields the AI can use
The AI uses only the fields the plugin can handle:
- email (always present and required)
- first name and last name
- gender
- privacy acceptance and tracking consent checkboxes
- the public profile fields you defined in the subscription settings
It never adds fields you didn’t ask for and never removes the required attribute from mandatory fields. Lists are not shown as fields: they are assigned from the form settings.
Saving
The preview is not saved automatically. When you are happy with the result click Save: the form on your site is updated only then.
The AI generates the full HTML of the form and can get creative: always check the preview, and the form on a real page, before saving. If something goes wrong just ask the AI to fix it, or reload the page to go back to the last saved version.
Switching to the code editor
Switch to code editor opens the same form in the code editor, where you can fine tune the HTML and CSS by hand. You can move between the two editors at any time; the AI always starts from the current code of the form.
The welcome email
Every form can send its own welcome email. In the Welcome email panel choose which welcome email to use:
- Use the default welcome email: the one configured in the main subscription settings
- Use this custom welcome email: the email designed in this panel with the email composer

- Do not send: no welcome email for subscribers coming from this form
The composer is shown only when the custom welcome email is selected. Remember to save after editing.
Adding the form to your site
Copy the shortcode shown in the forms list and paste it in a page, a post or a widget:
[newsletter_form id="1"]
where 1 is the form id. The same form can be used in more than one place.
To submit the form without reloading the page add ajax="true":
[newsletter_form id="1" ajax="true"]
You can also add a CSS class to the form container with class="my-class".
Forms designed with the AI editor include all their CSS, so the plugin doesn’t add its standard form style to avoid conflicts. Your theme style can still affect some elements: check the form on a real page.
FAQ and best practices
Can I use different lists for different forms?
Yes, it’s one of the main reasons to use custom forms. Set the lists in each form’s settings and you will know where every subscriber comes from.
Is the content generated by the AI safe?
The generated HTML is filtered when saved: scripts and unsupported elements are removed. Still, review the result before publishing it.
The AI didn’t do what I asked.
Be more specific, or ask for one change at a time. If the form is broken, ask the AI to restore a simple layout, or switch to the code editor and fix it by hand.
Ask only for what you need.
Every extra field lowers the number of subscriptions. Email only, or email and first name, is usually the best choice.
Related documentation