Dynamic Tags

User, Post, and Page Tags

4 min read

User, post, and page tags pull data from WordPress. Use them to greet logged-in visitors, mention the article they are reading, or show page-specific details.

New to tags? Start with What Are Dynamic Tags?.

For custom fields on users, posts, or pages, see Custom Meta Tags. For dates like "3 days ago", see Date Formatting Tags.

User tags

User tags read the currently logged-in visitor. If the visitor is a guest, most user tags stay empty.

TagShows
{user_id}User account ID
{user_first_name}First name
{user_last_name}Last name
{user_display_name}Display name shown on the site
{user_email}Email address
{user_username}Login username
{user_url}Website URL from profile
{user_nicename}URL-friendly slug
{user_registered_date_...}Registration date (see date article)
{user_meta_FIELD}Any user meta field (see meta article)

Example: Welcome back, {user_first_name}!

Privacy: Avoid showing sensitive fields like {user_email} to all visitors on the frontend unless you have a clear reason.

Post tags

Post tags use the current blog post in context (or the post selected by your notification content source).

TagShows
{post_id}Post ID
{post_title}Post title
{post_content}Full content (HTML stripped)
{post_excerpt}Excerpt
{post_author}Author display name
{post_url}Permalink
{post_published_date_...}Publish date
{post_modified_date_...}Last modified date
{post_created_date_...}Created date
{post_meta_FIELD}Custom post meta

Example: Enjoying {post_title}? Subscribe for more.

Page tags

Page tags work like post tags but for WordPress pages.

TagShows
{page_id}Page ID
{page_title}Page title
{page_content}Page content (HTML stripped)
{page_url}Page permalink
{page_published_date_...}Publish date
{page_modified_date_...}Modified date
{page_parent_title}Title of the parent page
{page_meta_FIELD}Custom page meta

Example: Questions about {page_title}? Chat with us.

When each tag has data

SituationUser tagsPost tagsPage tags
Visitor on a blog postIf logged inFrom that postEmpty unless page in context
Visitor on a static pageIf logged inEmptyFrom that page
Guest visitorMostly emptyFrom current postFrom current page
Dynamic content sourceUser from contextPost from rotated poolPage from rotated pool

Set Content Source on the notification when tags should pull from specific posts or pages, not only the current URL.

Enable user, post, and page categories

Tags must be enabled in settings or they will not appear in the tag picker:

  1. Go to Notifal → Settings → Tags.
  2. Under Core WordPress Tags, turn on User Tags, Post Tags, and Page Tags.
  3. Save.

Details: Managing Tag Categories in Settings.

Post and page counters

To show how many posts or pages match your content source filters, use {post_counter} and {page_counter}. See Counter Tags.

Dynamic Tags series