A dynamic tag is a small placeholder — like {{term_title}} — that you place inside a text block inside a loop. When the page loads, each tag is replaced with real data from the current loop item. For example, put {{term_title}} in a Heading block inside a Terms loop and every loop item will print the name of its term.
Term Tags
These tags work inside a Terms loop — a loop that queries taxonomy terms (categories, tags, or any custom taxonomy).
| Tag | What it shows | Options |
|---|---|---|
| term_title | The term name (for example, “Recipes” or “Blue”). | link: set to true to wrap the name in a link to the term archive page. |
| term_description | The term description text. | None. |
| term_archive_url | The URL of the term archive page. | None. |
| term_count | How many posts use this term. | None. |
User Tags
These tags work inside a Users loop — a loop that queries WordPress user accounts.
| Tag | What it shows | Options |
|---|---|---|
| user_display_name | The user’s display name. | link: set to true to link the name to the author archive page. |
| user_email | The user’s email address. | None. |
| user_bio | The user’s biography. | None. |
| user_avatar_url | The URL of the user’s avatar image. | size: avatar size in pixels. default: fallback image URL or a Gravatar default style. forceDefault: force the default image even when the user has an avatar. rating: maximum content rating to allow (for example, g). |
| user_url | The user’s website URL. | None. |
| user_posts_url | The URL of the user’s author archive (their list of posts). | None. |
| user_post_count | How many posts the user has published. | None. |
WooCommerce Tags
These tags work inside a Products loop. WooCommerce must be installed and active.
| Tag | What it shows | Options |
|---|---|---|
| product_price | The product price. | type: leave empty for the active price, regular for the regular price, or sale for the sale price. |
| product_sku | The product SKU (stock-keeping unit — a short product code). | None. |
| product_stock | The stock status (for example, “In stock”). | field: set to quantity to print the actual stock number instead of the status label. |
| product_rating | The product’s average customer rating. | format: numeric for a number, or stars for a star display. use_wc_output: set to true to use WooCommerce’s own star HTML; leave it false (the default) to use the plugin’s built-in SVG stars. |
| product_review_count | How many customer reviews the product has. | None. |
| product_add_to_cart_url | The add-to-cart URL for the product. | None. |
| product_add_to_cart_text | The text for the add-to-cart button (for example, “Add to cart” or “Select options”). | None. |
| product_image_url | A product image URL. Note: this tag was previously named product_image. The current name is product_image_url. | source: leave empty for the featured image, or set to gallery to pull from the gallery. position: which gallery image to use; 1 means the first image. image size: the registered image size to use (for example, thumbnail or large). |
| product_weight | The product weight. | None. |
| product_dimensions | The product dimensions. | None. |
| product_on_sale | Prints 1 if the product is on sale. Prints nothing if it is not. | None. |
| product_attribute | The raw value of a product attribute (for example, “Red, Blue, Green”). | attribute: an attribute slug, or the word primary or secondary to target the first or second attribute. |
| product_title | The product title. | type: leave empty for the full title, base for the base title only, or attributes for the attributes portion only. with_primary_attr: include the primary attribute in the output. link: product links to the product page; variation links to the specific variation. |
| product_variation_description | The description for the current product variation. | None. |
| product_category_image_url | The image URL for a product category. | image size: the registered image size to use. |
| product_url | The product URL. | type: leave empty for the product URL, or set to variation or post. |
| product_option | The display label for one variation option (for example, the label for the selected size). | attribute: primary, secondary, or an attribute slug. |
| product_options | The full secondary-option switcher — for example, a set of size buttons a shopper can click. | attribute: the attribute to use. sep: leave empty for buttons, or set to links, list, or comma. label: a label shown before the options. in_stock_only: show only in-stock options. |
Which attribute tag should I use?
WooCommerce products have three different attribute tags. Here is a quick guide:
- product_attribute — Use this for the raw value of any attribute. Good for displaying a plain list like “Red, Blue, Green”.
- product_option — Use this to show the display label for one variation option (for example, the currently selected size).
- product_options — Use this to show the full secondary-option switcher: a set of clickable buttons, links, a list, or comma-separated values that let shoppers pick an option.
Universal Options
These two options work on every tag in this reference.
fallback
Shows a value when the tag would otherwise print nothing. For example, if a product has no SKU, you could show “N/A” instead of a blank space.
The special value avatar tells the tag to fall back to the avatar URL when the main output is empty.
url
Treats the tag’s output as a WordPress attachment ID (a number that identifies a media file) and converts it into an image URL. The value you give is the image size to use — for example, thumbnail or large.