The Favorites dynamic tag in Dynamic Content for Elementor allows you to retrieve and display a list of favorite posts selected by users either via cookies or on a per-user basis.
This feature is useful for showcasing saved content within a template or dynamic context, such as in a post loop or single post layout.
Note: This feature works in combination with the Add to Favorites widget, which collects favorite items. Alternatively, the Favorites widget is available to display favorited content in a more visual layout.
Settings
The Favorites tag includes a rich set of customization controls, allowing you to tailor the output format and data scope according to your needs:
Favorites from: Choose whether the favorites are retrieved from Cookies (for guest users) or User Meta (for logged-in users).
Favorites Key: Define a custom key to identify the favorites list. Defaults to
my_favorites
.Separator: Choose how the list is separated β options include New Line, Line Break, or Comma.
Link to Favorite: Optionally wrap each item in an anchor tag linking to the post permalink (not available if using "New Line" as separator).
Post Type: Filter favorite items by one or more selected post types.
Post Status: Limit output to specific post statuses (e.g.,
publish
,draft
, etc.).Order By / Order: Define how the items are ordered (e.g., by date, title, etc.) and in which direction (ASC or DESC).
Results: Limit the number of posts returned in the output.
Return Format: Choose how each item is displayed β Title, Title | ID, or ID only.
Fallback Content: Define a fallback text shown when no favorites are found.
Compatibility with Other Features
The Favorites dynamic tag is designed to work in correlation with the following features:
Add to Favorites Widget: This widget enables users to mark content as favorite. The dynamic tag reads and outputs these favorites.
Favorites Widget: While the dynamic tag outputs a raw list of favorite items, the widget version provides a fully visual interface to list favorites with templates and layout options.
Usage Summary
The Favorites dynamic tag is ideal for scenarios where you want to dynamically display a list of saved posts inside an Elementor template, such as:
Listing favorited posts within an author or user profile page.
Showing saved articles or custom post types in a sidebar or footer section.
Creating lightweight alternatives to visual lists using plain text or linked titles.
For more advanced display needs, you can just use the Favorites Widget instead.