Dynamic Tags

BricksUltimate is providing the lot of extra custom dynamic tags. Therefore you can easily represent the dynamic content at frontend.

Here is the list of the dynamic tags:

For General WordPress Sites

  1. {loop_counter} - Display the loop index.
  2. {parent_title} - Display the parent post's title.
  3. {parent_post_url} - Display the parent post's permalink.
  4. {bu_post_title} - Display the post title. When you are using the BU's custom query loop, you use this dynamic tag to display the post, page, cpt's title.
  5. {post_permalink} - Display the post, page and cpt's permalink.
  6. {post_class} - Display the post classes.
  7. {post_year} -
  8. {bu_post_id} - Display the post ID. When you use the BU's custom query loop provider, you should use this tag to fetch the item's ID.
  9. {term_posts_count} - Display the total posts number of a term. It works inside the terms query.
  10. {term_parent_id} - Display the parent term ID.
  11. {term_has_children} - Return true or false. It checks that a term has children. You use this dynamic tag as element condition.
  12. {img_html} - Display the attachment with IMG html tag. When you are using the WP Media query or attachment query and display the image, you use this tag in the Basic Text or Rich Text element. You can also pass the image size like this way {img_html:full}.
  13. {image_id} - Display the attachment ID.
  14. {image_url} - Display the image URL.
  15. {image_title} - Display the image title.
  16. {image_alt} - Display the image alternative text.
  17. {image_caption} - Display the image caption.
  18. {image_description} - Display the image description.
  19. {menu_item_id} - Display the menu's ID. Use this tag, when you run the WP Menu query loop.
  20. {menu_item_title} - Display the menu's title/name. Use this tag, when you run the WP Menu query loop.
  21. {menu_item_attr_title} - Display the menu attributes. Use this tag, when you run the WP Menu query loop.
  22. {menu_item_description} - Display the menu's description. Use this tag, when you run the WP Menu query loop.
  23. {menu_item_url} - Display the menu URL. Use this tag, when you run the WP Menu query loop.
  24. {menu_item_classes} - Display the menu classes. Use this tag, when you run the WP Menu query loop.
  25. {menu_item_has_sub_item} - Checks wether a menu has sub menu items. Use this tag, when you run the WP Menu query loop.
  26. {menu_item_parent_id} - Display the parent menu ID. Use this tag, when you run the WP Menu query loop.
  27. {menu_item_type} - Display the menu type. Use this tag, when you run the WP Menu query loop.
  28. {menu_item_object} - Fetch the menu object. Use this tag, when you run the WP Menu query loop.
  29. {menu_item_object_id} - Fetch the menu object ID. Use this tag, when you run the WP Menu query loop.
  30. {acf_checkbox_value} - Display ACF checkbox value.
  31. {acf_checkbox_label} - Display ACF checkbox label.
  32. {mb_checkbox_list_value} - Display Metabox checkbox value.
  33. {mb_checkbox_list_label} - Display Metabox checkbox label.
  34. {count_user_posts} - Display the total number of posts of a user.

For WooCommerce Shop Sites

  1. {bu_product_type} - Get product type(simple, variable, grouped or external).
  2. {bu_product_available_stock_quantity} - Display the available stock quantity of a product.
  3. {bu_product_stock_quantity} - Display the total stock quantity of a product.
  4. {bu_product_description} - Display the product description.
  5. {bu_product_excerpt} - Display the product short description.
  6. {bu_product_weight} - Display the product weight.
  7. {bu_product_dimensions} - Display the product dimensions.
  8. {bu_product_dimensions_width} - Display the product dimensions: width.
  9. {bu_product_dimensions_height} - Display the product dimensions: height.
  10. {bu_product_dimensions_length} - Display the product dimensions: length.
  11. {product_price_excl_tax} - Display the product price excluding tax.(@since 2.2.3)
  12. {product_price_incl_tax} - Display the product price including tax.(@since 2.2.3)
  13. {product_tax_amount} - Display the product tax.(@since 2.2.3)
  14. {product_tax_class} - Display the product tax class.(@since 2.2.4)
  15. {product_tax_rate} - Display the product tax rate.(@since 2.2.4)
  16. {product_tax_status} - Display the product tax status.(@since 2.2.5)
  17. {bu_add_to_cart_url} - Add To Cart button URL.
  18. {bu_add_to_cart_text} - Add To Cart button text.
  19. {bu_add_to_cart_class} - Add To Cart button CSS class.
  20. {bu_prd_swatches_color_code} - BU Swatches color code(Hex value).
  21. {bu_prd_swatches_img_url} - BU Swatches Image URL.
  22. {bu_global_unique_id} - GTIN, UPC, EAN, ISBN
  23. {bu_product_atts} - Display the product attributes.
  24. {product_total_reviews} - Display the total reviews of a product.
  25. {product_average_ratings} - Display the average ratings of a product.
  26. {bu_total_reviews} - Display the total reviews of entire site(all products).
  27. {bu_average_ratings} - Display the average ratings of the entire site(all products).
  28. {product_gallery_imgs} - Giving the total number of gallery images associated with the product and its variations (if applicable).
  29. {sale_start_date} - Sale start date.
  30. {sale_end_date} - Sale end date.
  31. {product_total_sales} - Total sales number of a product.
  32. {product_discount} - Calculate the discount amount (difference between regular and sale price) for a product. Nothing if the product has no discount or is free.
  33. {product_discount_percent} - Calculates the discount percentage for a WooCommerce product (either a simple product or a variable product). This tag is typically used to display:
    • "Save X%" labels in WooCommerce stores.
    • Discount badges on product listings.
  34. {cart_counter} - Show the number of items of the cart.
  35. {cart_counter_as_quantity} - the number of items in a WooCommerce shopping cart.
  36. {cart_item_quantity} - Checks if a specific product (or its variation) exists in the cart and retrieves its quantity if found.
  37. {cart_item_subtotal} - Checks if a specific product (or its variation) exists in the cart and calculates its total line price (quantity × unit price) while properly handling taxes.
  38. {cart_contents_subtotal} - Display the subtotal of your cart.
  39. {cart_contents_total} - Display total cart price.
  40. {fsn_min_amount} - Minimum amount of the free shipping.
  41. {fsn_updated_amount} - Tells customers exactly how close they are to free shipping.
  42. {bu_shipping_class} - Display the shipping class.
  43. {bu_chosen_shipping_method_name} - Display the shipping name(free, local pickup, ground).
  44. {customer_total_orders} - Total orders of a customer.
  45. {customer_total_spent} - Total spent by a customer.

WooCommerce Coupons

If you use the coupons query loop to displaying the coupon list on the site or other purposes, you use the following tags:

  1. {bu_coupon_code} - Display the coupon code.
  2. {bu_coupon_description} - Display the coupon description.
  3. {bu_coupon_discount_type} - Display the discount type(percentage or fixed amount).
  4. {bu_coupon_created} - Coupon created date.
  5. {bu_coupon_modified_date} - Coupon modified date.
  6. {bu_coupon_expiry_date} - Coupon expiry date.
  7. {bu_coupon_usage_count} - How many times a coupon is used.
  8. {bu_coupon_usage_limit} - How many times a coupon will be applied.
  9. {bu_coupon_usage_limit_per_customer} - How many times a customer can apply the coupon.
  10. {bu_coupon_grants_free_shipping} - Coupon is supporting the free shipping.
  11. {bu_coupon_minimum_spend_amount} - Minimum spend limit.
  12. {bu_coupon_maximum_spend_amount} - Maximum spend limit.

WooCommerce Orders

If you run the orders query loop to display the orders on the My Account page or create the Thank You page, you use the following tags:

  1. {bu_cust_order_id} - Order ID
  2. {bu_cust_order_number} - Order number
  3. {bu_cust_order_key} - Order key
  4. {bu_cust_order_date} - Order submitted date
  5. {bu_cust_order_status} - Order status(completed, processing, refund, etc)
  6. {bu_cust_order_meta} - Retrieves a custom order meta field value from a WooCommerce order. You can fetch any order meta value by this tag.

    Syntax: {bu_cust_order_meta:billing_vat}. Here billing_vat is the order meta field key.
  7. {bu_cust_order_item_count} - Display the net quantity of items in a WooCommerce order by subtracting refunded items from the original order.
  8. {bu_cust_order_shipping_cost} - Display the shipping cost
  9. {bu_cust_order_item_subtotal} - Order subtotal
  10. {bu_cust_order_total_price} - Order total(include or exclude tax)
  11. {bu_cust_order_total_without_tax} - Order total without tax
  12. {bu_cust_order_total_tax} - Total tax
  13. {bu_cust_order_payment_method} - Payment method
  14. {bu_cust_order_payment_method_title} - Payment method title
  15. {bu_view_order_url} - Get the link of the View Order button
  16. {bu_pay_order_url} - Get the link of the Pay button
  17. {bu_cancel_order_url} - Get the link of the Cancel button
  18. {bu_order_again_url} - Get the link of the Again button
  19. {bu_cust_order_prev_link} - Using for pagination. Go to previous orders page.
  20. {bu_cust_order_next_link} - Using for pagination. Go to next orders page.
  21. {bu_cust_id} - Customer ID
  22. {bu_cust_order_customer_note} - Customer note.

WooCommerce Items(products) of An Order

If you run the order items query loop to display the items of an order on the My Account or other custom page, you use the following tags:

  1. {bu_order_item_featimg_id} - Returns order item's featured image ID.
  2. {bu_order_item_name} - Display the order item's title.
  3. {bu_order_item_quantity} - Display the order item's quantity.
  4. {bu_order_item_price} - Display the order item's price.
  5. {bu_order_item_sku} - Display the order item's SKU.
  6. {bu_order_item_variable_attributes} - Display the order item's variations if it is a variable product.
  7. {bu_order_item_custom_data} - Display the order item's custom field data. Syntax: {bu_order_item_custom_data:my_custom_field_key}.

WooCommerce Customer Details

  1. {bu_cust_billing_first_name} - Billing form - First name
  2. {bu_cust_billing_last_name} - Billing form - Last name
  3. {bu_cust_billing_email} - Billing form - Email
  4. {bu_cust_billing_phone} - Billing form - Phone
  5. {bu_cust_billing_company} - Billing form - Company
  6. {bu_cust_billing_address_1} - Billing form - Address 1
  7. {bu_cust_billing_address_2} - Billing form - Address 2
  8. {bu_cust_billing_city} - Billing form - City
  9. {bu_cust_billing_state} - Billing form - State
  10. {bu_cust_billing_postcode} - Billing form - Postcode
  11. {bu_cust_billing_country} - Billing form - Country
  12. {bu_cust_shipping_first_name} - Shipping form - First name
  13. {bu_cust_shipping_last_name} - Shipping form - Last name
  14. {bu_cust_shipping_phone} - Shipping form - Phone
  15. {bu_cust_shipping_company} - Shipping form - Company
  16. {bu_cust_shipping_address_1} - Shipping form - Address 1
  17. {bu_cust_shipping_address_2} - Shipping form - Address 2
  18. {bu_cust_shipping_city} - Shipping form - City
  19. {bu_cust_shipping_state} - Shipping form - State
  20. {bu_cust_shipping_postcode} - Shipping form - Postcode
  21. {bu_cust_shipping_country} - Shipping form - Country

WooCommerce Order Bumps

  1. {buob_id} - Order bumps ID
  2. {buob_title} - Order bumps title
  3. {buob_description} - Order bumps description
  4. {buob_product_id} - Offer product ID
  5. {buob_product_image} - Offer product featured image ID
  6. {buob_product_title} - Offer product title
  7. {buob_product_price} - Offer product price
  8. {buob_product_org_price} - Offer product original price
  9. {buob_product_description} - Offer product description
  10. {buob_product_quantity} - Offer product quantity
  11. {buob_discount_amount} - Offer amount
  12. {buob_has_quantity_field} - Are you enabled the quantity field? It is using as an element condition.