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
- {loop_counter} - Display the loop index.
- {parent_title} - Display the parent post's title.
- {parent_post_url} - Display the parent post's permalink.
- {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.
- {post_permalink} - Display the post, page and cpt's permalink.
- {post_class} - Display the post classes.
- {post_year} -
- {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.
- {term_posts_count} - Display the total posts number of a term. It works inside the terms query.
- {term_parent_id} - Display the parent term ID.
- {term_has_children} - Return true or false. It checks that a term has children. You use this dynamic tag as element condition.
- {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}. - {image_id} - Display the attachment ID.
- {image_url} - Display the image URL.
- {image_title} - Display the image title.
- {image_alt} - Display the image alternative text.
- {image_caption} - Display the image caption.
- {image_description} - Display the image description.
- {menu_item_id} - Display the menu's ID. Use this tag, when you run the WP Menu query loop.
- {menu_item_title} - Display the menu's title/name. Use this tag, when you run the WP Menu query loop.
- {menu_item_attr_title} - Display the menu attributes. Use this tag, when you run the WP Menu query loop.
- {menu_item_description} - Display the menu's description. Use this tag, when you run the WP Menu query loop.
- {menu_item_url} - Display the menu URL. Use this tag, when you run the WP Menu query loop.
- {menu_item_classes} - Display the menu classes. Use this tag, when you run the WP Menu query loop.
- {menu_item_has_sub_item} - Checks wether a menu has sub menu items. Use this tag, when you run the WP Menu query loop.
- {menu_item_parent_id} - Display the parent menu ID. Use this tag, when you run the WP Menu query loop.
- {menu_item_type} - Display the menu type. Use this tag, when you run the WP Menu query loop.
- {menu_item_object} - Fetch the menu object. Use this tag, when you run the WP Menu query loop.
- {menu_item_object_id} - Fetch the menu object ID. Use this tag, when you run the WP Menu query loop.
- {acf_checkbox_value} - Display ACF checkbox value.
- {acf_checkbox_label} - Display ACF checkbox label.
- {mb_checkbox_list_value} - Display Metabox checkbox value.
- {mb_checkbox_list_label} - Display Metabox checkbox label.
- {count_user_posts} - Display the total number of posts of a user.
For WooCommerce Shop Sites
- {bu_product_type} - Get product type(simple, variable, grouped or external).
- {bu_product_available_stock_quantity} - Display the available stock quantity of a product.
- {bu_product_stock_quantity} - Display the total stock quantity of a product.
- {bu_product_description} - Display the product description.
- {bu_product_excerpt} - Display the product short description.
- {bu_product_weight} - Display the product weight.
- {bu_product_dimensions} - Display the product dimensions.
- {bu_product_dimensions_width} - Display the product dimensions: width.
- {bu_product_dimensions_height} - Display the product dimensions: height.
- {bu_product_dimensions_length} - Display the product dimensions: length.
- {product_price_excl_tax} - Display the product price excluding tax.(@since 2.2.3)
- {product_price_incl_tax} - Display the product price including tax.(@since 2.2.3)
- {product_tax_amount} - Display the product tax.(@since 2.2.3)
- {product_tax_class} - Display the product tax class.(@since 2.2.4)
- {product_tax_rate} - Display the product tax rate.(@since 2.2.4)
- {product_tax_status} - Display the product tax status.(@since 2.2.5)
- {bu_add_to_cart_url} - Add To Cart button URL.
- {bu_add_to_cart_text} - Add To Cart button text.
- {bu_add_to_cart_class} - Add To Cart button CSS class.
- {bu_prd_swatches_color_code} - BU Swatches color code(Hex value).
- {bu_prd_swatches_img_url} - BU Swatches Image URL.
- {bu_global_unique_id} - GTIN, UPC, EAN, ISBN
- {bu_product_atts} - Display the product attributes.
- {product_total_reviews} - Display the total reviews of a product.
- {product_average_ratings} - Display the average ratings of a product.
- {bu_total_reviews} - Display the total reviews of entire site(all products).
- {bu_average_ratings} - Display the average ratings of the entire site(all products).
- {product_gallery_imgs} - Giving the total number of gallery images associated with the product and its variations (if applicable).
- {sale_start_date} - Sale start date.
- {sale_end_date} - Sale end date.
- {product_total_sales} - Total sales number of a product.
- {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.
- {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.
- {cart_counter} - Show the number of items of the cart.
- {cart_counter_as_quantity} - the number of items in a WooCommerce shopping cart.
- {cart_item_quantity} - Checks if a specific product (or its variation) exists in the cart and retrieves its quantity if found.
- {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.
- {cart_contents_subtotal} - Display the subtotal of your cart.
- {cart_contents_total} - Display total cart price.
- {fsn_min_amount} - Minimum amount of the free shipping.
- {fsn_updated_amount} - Tells customers exactly how close they are to free shipping.
- {bu_shipping_class} - Display the shipping class.
- {bu_chosen_shipping_method_name} - Display the shipping name(free, local pickup, ground).
- {customer_total_orders} - Total orders of a customer.
- {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:
- {bu_coupon_code} - Display the coupon code.
- {bu_coupon_description} - Display the coupon description.
- {bu_coupon_discount_type} - Display the discount type(percentage or fixed amount).
- {bu_coupon_created} - Coupon created date.
- {bu_coupon_modified_date} - Coupon modified date.
- {bu_coupon_expiry_date} - Coupon expiry date.
- {bu_coupon_usage_count} - How many times a coupon is used.
- {bu_coupon_usage_limit} - How many times a coupon will be applied.
- {bu_coupon_usage_limit_per_customer} - How many times a customer can apply the coupon.
- {bu_coupon_grants_free_shipping} - Coupon is supporting the free shipping.
- {bu_coupon_minimum_spend_amount} - Minimum spend limit.
- {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:
- {bu_cust_order_id} - Order ID
- {bu_cust_order_number} - Order number
- {bu_cust_order_key} - Order key
- {bu_cust_order_date} - Order submitted date
- {bu_cust_order_status} - Order status(completed, processing, refund, etc)
- {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. - {bu_cust_order_item_count} - Display the net quantity of items in a WooCommerce order by subtracting refunded items from the original order.
- {bu_cust_order_shipping_cost} - Display the shipping cost
- {bu_cust_order_item_subtotal} - Order subtotal
- {bu_cust_order_total_price} - Order total(include or exclude tax)
- {bu_cust_order_total_without_tax} - Order total without tax
- {bu_cust_order_total_tax} - Total tax
- {bu_cust_order_payment_method} - Payment method
- {bu_cust_order_payment_method_title} - Payment method title
- {bu_view_order_url} - Get the link of the View Order button
- {bu_pay_order_url} - Get the link of the Pay button
- {bu_cancel_order_url} - Get the link of the Cancel button
- {bu_order_again_url} - Get the link of the Again button
- {bu_cust_order_prev_link} - Using for pagination. Go to previous orders page.
- {bu_cust_order_next_link} - Using for pagination. Go to next orders page.
- {bu_cust_id} - Customer ID
- {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:
- {bu_order_item_featimg_id} - Returns order item's featured image ID.
- {bu_order_item_name} - Display the order item's title.
- {bu_order_item_quantity} - Display the order item's quantity.
- {bu_order_item_price} - Display the order item's price.
- {bu_order_item_sku} - Display the order item's SKU.
- {bu_order_item_variable_attributes} - Display the order item's variations if it is a variable product.
- {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
- {bu_cust_billing_first_name} - Billing form - First name
- {bu_cust_billing_last_name} - Billing form - Last name
- {bu_cust_billing_email} - Billing form - Email
- {bu_cust_billing_phone} - Billing form - Phone
- {bu_cust_billing_company} - Billing form - Company
- {bu_cust_billing_address_1} - Billing form - Address 1
- {bu_cust_billing_address_2} - Billing form - Address 2
- {bu_cust_billing_city} - Billing form - City
- {bu_cust_billing_state} - Billing form - State
- {bu_cust_billing_postcode} - Billing form - Postcode
- {bu_cust_billing_country} - Billing form - Country
- {bu_cust_shipping_first_name} - Shipping form - First name
- {bu_cust_shipping_last_name} - Shipping form - Last name
- {bu_cust_shipping_phone} - Shipping form - Phone
- {bu_cust_shipping_company} - Shipping form - Company
- {bu_cust_shipping_address_1} - Shipping form - Address 1
- {bu_cust_shipping_address_2} - Shipping form - Address 2
- {bu_cust_shipping_city} - Shipping form - City
- {bu_cust_shipping_state} - Shipping form - State
- {bu_cust_shipping_postcode} - Shipping form - Postcode
- {bu_cust_shipping_country} - Shipping form - Country
WooCommerce Order Bumps
- {buob_id} - Order bumps ID
- {buob_title} - Order bumps title
- {buob_description} - Order bumps description
- {buob_product_id} - Offer product ID
- {buob_product_image} - Offer product featured image ID
- {buob_product_title} - Offer product title
- {buob_product_price} - Offer product price
- {buob_product_org_price} - Offer product original price
- {buob_product_description} - Offer product description
- {buob_product_quantity} - Offer product quantity
- {buob_discount_amount} - Offer amount
- {buob_has_quantity_field} - Are you enabled the quantity field? It is using as an element condition.