GLOBAL DYNAMIC TAGS
Global dynamic tags are universal and can be used across all templates and widgets.
USER ROLE
Description: This tag returns the role of the current user, such as Administrator, Subscriber, or any custom role.
Usage: Available throughout the entire website.
Scope: Current User
Settings:
- Return Format:
- Slug: Returns the role identifier (e.g.,
administrator
). - Name: Returns the localized role name, based on the WordPress language settings (e.g.,
Administrator
).
- Slug: Returns the role identifier (e.g.,
DYNAMIC CALCULATIONS
Description:
This tag is capable of performing mathematical operations and returning the calculated result. Supported formats include:
- Arithmetic Operators:
+
,-
,*
,/
- Relational/Comparison Operators:
<
,>
,<=
,>=
,==
,!=
- Logical (Boolean) Operators:
&&
,||
,!
- Parentheses:
()
for nested operations
The tag handles a single calculation only. If you need to execute multiple calculations or aggregate complex formulas, consider using the Dynamic Calculation widget, which can handle multiple operations but returns a single output.
Usage: Available throughout the entire website.
Scope: The tag allows you to define the data scope for calculations. Options include:
- Listing Grid
- Current Post
- Current User
- Current Term
Settings:
-
Calculation Formula: Currently, only standard mathematical operations are supported using the operators listed above.
- In future versions (v2.4.X), date calculations will also be included.
-
Query Source: Define the data source for the calculation. Options include:
Listing Grid
Current Post
Current User
Current Term
Example Usage:
%calc_with_text% * %calc_with_text_2%
- The
% %
syntax is used to reference meta fields. - Only numeric values are supported. If a text field contains letters, they will be automatically removed.
- Decimal support is enabled.
Screenshot
