Dynamic Tags

Counter Tags

3 min read

Counter tags show a number: how many orders, products, posts, pages, or comments match the content source filters on that notification.

Use them for urgency and social proof: Join {post_counter}+ happy readers or {order_counter} orders this week.

They are different from cart tags like {cart_item_count}, which read one visitor's cart. See Cart Tags (WooCommerce).

Introduction: What Are Dynamic Tags?.

Available counter tags

TagCountsRequires
{order_counter}Orders matching order restrictionsWooCommerce
{product_counter}Products matching product restrictionsWooCommerce
{post_counter}Posts matching post restrictionsWordPress
{page_counter}Pages matching page restrictionsWordPress
{comment_counter}Comments matching comment restrictionsNotifal Pro
{custom_posttype_counter_SLUG}Items of a custom post typeContent source for that type

Custom post type example: for a book post type, use {custom_posttype_counter_book}.

How counters respect content source

Counters do not always show site-wide totals. They honor the same rules you set under the notification Content Source tab, for example:

Content source ruleEffect on counter
Orders from last 7 days{order_counter} only counts those orders
Products on sale{product_counter} only counts sale items
Posts in a category{post_counter} only counts matching posts
Custom meta filtersCount shrinks to items that pass the filter

Change content source settings and the counter updates on the frontend (cached briefly for performance).

Example uses

Message ideaTags
Weekly sales proof{order_counter} orders in the last 7 days (set order date range in content source)
Catalog size{product_counter} products in this collection
Blog engagement{comment_counter} reviews from real customers (Pro)
Custom directory{custom_posttype_counter_event} upcoming events

Comment counter and Pro

{comment_counter} follows comment content source restrictions but requires Notifal Pro active. Comment text tags are also Pro-only. See Comment Tags (Pro).

Preview behavior

In template preview, counters may show sample numbers (for example 42 for orders) so you can check layout before real data exists.

Setup checklist

  1. Add counter tags to your template (Insert Tag in HTML Builder or tag panel in Elementor/Block Editor).
  2. Open the linked notification → Content Source.
  3. Set restrictions (date range, categories, status, and similar) for the entity you count.
  4. Save and test on the frontend.

Related tags

NeedUse
One product name{product_name} in WooCommerce Product and Order Tags
Cart quantity{cart_item_count} in Cart Tags
User name{user_first_name} in User, Post, and Page Tags

Dynamic Tags series