Skip to main content
Using 'data' Shortcodes in the Views Widget
Updated over a week ago

The Views widget in Dynamic Content for Elementor, from version 3.0, allows the use of 'data' shortcodes in specific settings, enabling dynamic customization and manipulation of data.

Available Settings and Corresponding 'data' Shortcodes

  1. Group by Field Heading: This setting allows you to dynamically define a heading for groups of content.

    • Available 'data' Shortcode: {data:heading} to obtain the value of a specific group and {data:permalink} for the term's permalink.

    • Usage Example: Configured to display a group heading based on the dynamic value of a field.

  2. Count Text: Displays the count of items or pages in a custom format.

    • Available 'data' Shortcode: {data:query} to dynamically insert values such as the current page number, the range of displayed items, and the total number of items.

    • Usage Example: Ideal for providing users with navigation information for query results, like Page {data:query||page} | {data:query||start}-{data:query||end} of {data:query||total}.

  3. Where Field Sub: Allows applying filters based on specific sub-fields or metadata.

    • Available 'data' Shortcode: {data:field} to filter data based on the value of a specific field.

    • Usage Example: Used to apply dynamic filters based on the content of a specific field.

  4. Select Rewrite: Enables the rewriting of a field's value with custom text.

    • Available 'data' Shortcode: {data:field} to overwrite the content of a field with custom text.

    • Usage Example: Useful for altering the display of data without changing the original value in the database.


Did this answer your question?