Happy New Year!
I set up the Newsletter Plugin about 2 months ago with a simple newsletter form without any defined lists.
Yesterday I tried to implement lists, so that people can subscribe to 2 different lists by checking or unchecking two checkboxes. I changed my newsletter shortcode by adding the two checkbox elements so that it looks like this:
[newsletter_form
referrer="newsletter"]
[newsletter_field name="first_name"
label="First name "]
[newsletter_field name="last_name"
label="Last name "]
[newsletter_field name="email"
label="Email "]
[newsletter_field name="list"
number="1"
label="I support Total Carbon Rationing"]
[newsletter_field name="list"
number="2"
label="Subscribe to updates"]
[newsletter_field name="privacy"
label="GDPR Permissions: check this box to confirm you agree to receive campaign updates and the Total Carbon Rationing newsletter. Your email address will never be sold or given to any third parties. You may unsubscribe at any time using the link at the bottom of the newsletter email."]
[/newsletter_form]
I notice in the generated HTML that the newsletter_field list checkboxes are totally absent.
I have entered lists 1 and 2 on the Lists form in the Newsletter list-building configuration page, and chosen ‘Even on subscription forms’ for both.
I have not included a list=”1,2″ attribute on my form definition because I want them to be free options, although in fact if I do put that attribute on the form, then the appropriate hidden fields are included.
It seems there must be a problem but I can’t see what I need to do.
Best regards
Adam