Noptin comes with several shortcodes that you can use to display :-

  • Newsletter subscription forms on your site.
  • The number of subscribers that you have on your site.
  • A specific subscriber field.
  • Your past newsletter issues.
  • Exclusive content to your newsletter subscribers.
  • And specific content to non-subscribers.

[noptin]

This shortcode allows you to display a newsletter subscription form to your subscribers.

Shortcode form sample

If you’ve set Noptin to hide subscription forms from existing subscribers, then the subscription form will only display for non-subscribers. In addition, your newsletter form will only show if all display rules are matched.

[past_noptin_newsletters]

Use this shortcode to display your past newsletter issues. This is a great way to engage your audience and showcase the valuable content you’ve shared over time.

[noptin-subscriber-count]

This shortcode allows you to display the number of newsletter subscribers that you have on your WordPress site.

It does not accept any arguments and is usable anywhere that shortcodes are allowed.

Example Usage:-

[noptin-subscriber-count]

[noptin-subscriber-field]

This shortcode allows you to display a given subscriber field. It does not display anything if the current visitor is not subscribed to your newsletter.

You have to pass in the name of the field that you want to show. This can be basic subscriber fields such as the first_name, last_name, email, or any custom subscriber field that you use on your subscription forms.

Example Usage:-

[noptin-subscriber-field field=phone]

[noptin-show-if-subscriber]

This shortcode allows you to display content to your newsletter subscribers and hide it from non-subscribers.

It does not accept any arguments.

Example Usage:-

[noptin-show-if-subscriber]This is only visible to your newsletter subscribers. Shortcodes are allowed[/noptin-show-if-subscriber]

[noptin-show-if-non-subscriber]

This shortcode allows you to display content to people who are not subscribed to your newsletter and hide it from your newsletter subscribers.

It does not accept any arguments.

Example Usage:-

[noptin-show-if-non-subscriber]This is only visible to people who are not subscribed to your newletter. Shortcodes are allowed[/noptin-show-if-non-subscriber]

Related Guides

  • What is Noptin?

    This walk-through introduces you to Noptin and what you can do with the plugin

    Read More

  • Installation

    Learn how to install Noptin on a single site or a multisite network.

    Read More

  • Translating

    Learn how to translate Noptin into your language.

    Read More

  • WPML

    Learn how to run a multi-lingual newsletter using WPML

    Read More

  • Polylang

    Learn how to run a multi-lingual newsletter using Polylang

    Read More

  • How to allow Editors to manage Noptin

    This article will guide you on how to allow editors to access and manage Noptin Sign in to your WordPress Dashboard, then hover over Noptin > Settings. In the Settings, Select General and then Allow Editors

    Read More

  • How to keep data when uninstalling Noptin

    Uninstalling a plugin from your WordPress site can often lead to loss of data. However, Noptin has an inbuilt feature which ensures that the data you worked so hard to collect remains intact even when you remove it from your site. Keeping data allows you to export it to the next project you are working…

    Read More