The Favorites Loop allows you to display a dynamic list of posts a user has marked as favorites. This custom query type integrates seamlessly with Bricks Builder and enables highly personalized user experiences by pulling content based on user interactions.
β
It is recommended that it be used with the "Add to Favorites" feature, which populates the data used by this loop.
Settings
Once the "Favorites" query type is selected in a query loop, a new set of controls appears under the container settings:
Favorites Key: Defines the storage key for the favorite items.
Favorites Scope: Determines where the data is stored β either in the
user
meta (logged-in users) or viacookie
(anonymous users).User Source (only if Scope =
user
):Current User
: Uses the currently logged-in user.Post Author
: Uses the author of the current post.Other User
: Manually specify a user ID.
User ID (only if User Source =
Other User
): Manually set a user ID.Posts per Page: Limits the number of posts shown. Can be set to
-1
to display all.Order by: Choose the ordering criteria (e.g.,
date
,title
,rand
, etc.).Order: Set ascending (
ASC
) or descending (DESC
) order.