Back to Support Grow Your Audience Blogging Blog Subscription Shortcode

Blog Subscription Shortcode

The [blog_subscription_form] shortcode is used to easily display a blog subscription form on a post or page. This lets readers sign up to receive email updates whenever a new post is made.

Looking for more ways to add a subscription form? You can use the Subscribe block!

You can add a shortcode to any page or post using a shortcode block.

The form is a bit different depending on whether or not the user is logged into a WordPress.com account:

Form for Logged-in Visitors

Follow blog by email

Form for Non-logged-in Visitors

Follow blog by email

To use the shortcode:

  1. Open your Page or Post editor.
  2. Ensure that you are on the Visual tab and paste [blog_subscription_form] into the box. Highlight the code and turn off Bold. If you use the block editor, use the shortcode block instead.
  3. Save Draft, Update, or Publish.

Arguments

The following arguments can be added to the shortcode to customize how it looks:

title
Specify the title of the form for visitors not already subscribed to your site
Default: Follow Blog via Email
Example: [blog_subscription_form title="Subscribe"]

title_following
Specify the title of the form for visitors who are already subscribed
Default: You are following this blog
Example: [blog_subscription_form title_following="You are already subscribed"]

subscribe_text
Specify the subscription prompt for logged-out visitors
Default: Enter your email address to follow this blog and receive notifications of new posts by email.
Example: [blog_subscription_form subscribe_text="Enter your email to subscribe to notifications from this site"]

subscribe_logged_in
Specify the subscription prompt for logged-in visitors
Default: Click to follow this blog and receive notifications of new posts by email.
Example: [blog_subscription_form subscribe_logged_in="Click to subscribe to this site"]

subscribe_button
Customize the text on the subscription button
Default: Follow
Example: [blog_subscription_form subscribe_button="Click me!"]

show_subscribers_total
Show total number of followers.
Default: Do not show.
Example: [blog_subscription_form show_subscribers_total=true]

You can include multiple arguments in a single shortcode. In that case, separate them with a space. Example:

[blog_subscription_form title="Subscribe" title_following="You are already subscribed" subscribe_text="Enter your email to subscribe to notifications from this site" subscribe_logged_in="Click to subscribe to this site" subscribe_button="Click me!" show_subscribers_total=true]

Was this guide helpful for you?

Not quite what you're looking for? Get Help!

Copied to clipboard!