View Categories

How to Use Smart Tags in WordPress – Email Personalization & Dynamic Content?

Smart Tags are dynamic placeholders that automatically populate with real data from your WordPress site, user registration forms, and user accounts. They provide a powerful way to personalize content, emails, messages, and form elements without manual data entry.

Example: Instead of writing “Hello [user’s name]”, you can write “Hello {{first_name}}” and it will automatically show “Hello John” when John registers.

Accessing Smart Tags in User Registration & Membership Plugin #

Method 1: From WordPress Dashboard #

Navigate to your WordPress admin dashboard and follow these steps:

  1. Go to User Registration & Membership Dashboard in your WordPress admin menu.
  2. Select Help from the dashboard menu.
  3. Next, click on the View Tags button of Smart Tags.
Navigate to Smart Tags in User Registration and Membership

This will display the complete list of available Smart Tags with their descriptions and use cases. Click on + sign to explore the tags.

Explore Smart Tags

Method 2: In-Context Help #

When editing emails, frontend messages, or other areas that support Smart Tags, look for:

  • Smart Tags button or link.
  • Insert Smart Tag option.
Smart Tags Example

How do you Add Smart Tags to Email Content? #

Navigate to User Registration & Membership > Settings > Emails. Here, you’ll find three tabs: General, To Admin, and To User.

Now, you can edit the email content for either the Admin or the User. So, click on the tab accordingly.

Navigate to Admin or User Tab

In this example, we are modifying email content sent to the admin after a new user registers on our site. So, let’s navigate to To Admin tab and click on the settings icon under the Configure tab.

Navigate to Email Template for Admin

Now, a new interface with the email template opens up. On the email content editor place the cursor where you want to add smart tag and then click on the Add Smart Tags link.

Click on Smart Tags for Email

It’ll show you all the available smart tags. Now, you can use any smart tags that match your email content.

Available Smart Tags Options

Don’t forget to save the changes after you complete the settings. You can also click on the Preview button to see how email will appear.

Preview Email

Available Smart Tags #

Basic User Information #

Smart TagWhat it ShowsExample
{{username}}Username of the registered user.john_doe
{{ur_login}}Alternative username tagjohn_doe
{{first_name}}First Name of the registered user.John
{{last_name}}Last name of the registered user.Doe
{{email}} Email of the registered user.[email protected]
{{display_name}}Display the name of the registered user.John Doe
{{user_id}}Unique user number123
{{user_roles}}User’s role on your siteSubscriber, Customer
{{auto_pass}}Automatically generated passwordTemp123!

Website Information #

Smart TagWhat it showsExample
{{blog_info}} Name of the websiteMy Awesome Website
{{home_url}}URL to the website.https://mywebsite.com
{{site_name}}Alternative site name tagMy Awesome Website
{{site_url}}Alternative site URL taghttps://mywebsite.com
{{admin_email}}Website admin email[email protected]

Page & Content Information #

Smart TagWhat it showsExample
{{page_title}}Current page title“Registration Page”
{{page_url}}Current page URLhttps://mysite.com/register
{{page_id}}Page ID number456
{{post_title}}Post title“Welcome Post”
{{author_name}}Content author nameJane Smith
{{author_email}}Content author email[email protected]

Date & Time Information #

Smart TagWhat it showsExample
{{current_date}}Today’s dateMarch 15, 2024
{{current_time}}Current time2:30 PM
{{current_language}}Site languageEnglish

Form Information #

Smart TagWhat it showsExample
{{form_id}}Registration form ID789
{{form_name}}Registration form name“Customer Registration”
{{all_fields}}All form informationComplete user details

Security and Tracking #

Smart TagWhat it showsExample
{{email_token}}Token generated for an email confirmation.Email confirmation links
{{key}}Security keyPassword reset links
{{unique_id}}Generates a unique string that can be used as an ID.abc123xyz
{{user_ip_address}}User’s IP address192.168.1.1
{{referrer_url}}Where did the user come fromhttps://google.com

Smart Tags for Membership #

Smart TagWhat it showsExample
{{membership_plan_details}}List details of plan user is subscribed to.Gold Plan: Access to premium content, priority support, exclusive webinars
{{membership_plan}}The name of the membership tier.Gold, Silver, Basic.
{{membership_plan_type}}Whether it’s a one-time payment or a subscription-based plan.One-time, Subscription
{{membership_plan_payment_method}}The used payment provider. Bank, Paypal, Stripe, etc.
{{membership_plan_payment_amount}}The cost of the membership, including currency.$29.99 USD, €25.00 EUR
{{membership_plan_payment_status}}The status of payment. Paid, Approved, Pending.
{{membership_plan_billing_cycle}}How often they’re charged.Monthly, Yearly, Lifetime, or Custom
{{membership_plan_trial_period}}Duration of the free trial.7 days, 14 days, 30 days
{{membership_plan_next_billing_date}}If it’s a subscription, when the next payment will be due.April 15, 2024
{{membership_plan_status}}Current membership statusActive, Expired, Cancelled, or Pending.

Smart Tags for Other Fields #

In a form field, you can add Smart Tags as field values. That means you can also use information from the field you’ve added to your registration form (like dropdowns, text areas, phone numbers, etc.) in your emails.

Format: {{field_name_with_unique_key}}

Example: If you have a country field, it might look like: {{country_1748242489}}

How to Find Your Field Value to Use as a Smart Tag? #

  1. Go to your form builder.
  2. Click on the form field you want to use.
  3. Look for the field name or unique key under the Field Options.
Custom Field ID

4. Copy the unique key to use later in the Email Templates.

You can now add your field value anywhere in the email content. So, edit the email template like we did in the previous section.

  • Go to User Registration > Settings > Emails.
  • Select the email template you want to edit.
  • Add your field value as a smart tag anywhere in the email content.

In the image below, we have added the field value for the country as Smart Tag in the email template.

Use Field ID as Smart Tag

Now, you can send a test registration to make sure the smart tags work correctly.

Email After Using Smart Tag on Custom Field

Powered by BetterDocs

Scroll to top