Dynamic Tags

Custom Meta Tags

3 min read

Meta tags let you display custom fields stored on users, posts, pages, products, or orders. If WordPress or WooCommerce saves extra data, you can usually expose it in a notification.

Base tags are covered in User, Post, and Page Tags and WooCommerce Product and Order Tags. This article focuses on the {..._meta_KEY} pattern.

Meta tag patterns

EntityPatternExample
User{user_meta_KEY}{user_meta_nickname}
Post{post_meta_KEY}{post_meta_rating}
Page{page_meta_KEY}{page_meta_subtitle}
Product{product_meta_KEY}{product_meta__sku}
Order{order_meta_KEY}{order_meta_billing_phone}

KEY is the internal meta key from WordPress or WooCommerce. WooCommerce product keys often start with an underscore, for example _price → {product_meta__price}.

Common WooCommerce product meta keys

PurposeTag
SKU{product_meta__sku}
Regular price{product_meta__regular_price}
Sale price{product_meta__sale_price}
Stock quantity{product_meta__stock}

Price meta values are formatted as currency on output.

Common order meta keys

Billing and shipping fields are stored as order meta:

FieldExample tag
First name{order_meta_billing_first_name}
City{order_meta_billing_city}
Phone{order_meta_billing_phone}
Shipping address{order_meta_shipping_address_1}

How to find the right key

Tag inserter (recommended)

  1. Open Insert Tag in the HTML Builder (or the Notifal tag panel in Elementor/Block Editor).
  2. Browse the User Meta, Product Meta, or Order Meta sections.
  3. Search for a field name. Notifal suggests frequently used keys from your database.

Plugin or custom fields

If you use Advanced Custom Fields, custom product fields, or other plugins, the meta key may match the field name configured in that plugin. Check the plugin docs or export screen for the exact key.

Meta tags and content source

Meta tags show data from the item in context (the user, post, product, or order selected for that impression). Set Content Source on the notification so the right product or order is loaded before meta values make sense.

Empty values

If meta is missing:

  • On the live site, the tag outputs nothing (blank).
  • In preview, Notifal may show a placeholder like "Preview Value" so you can test layout.

Security and privacy

Do not expose sensitive meta (internal notes, full addresses, API tokens) in public notifications. Stick to fields you would happily show any visitor.

Related reading

Dynamic Tags series