Opens in a new tab
14th Dec '23
/
11 comments

MB Favorite Posts in Bricks

MB Favorite Posts is an add-on plugin for users of Meta Box lifetime bundle that enables your site's visitors and logged-in users to mark posts as favorites.

This Pro tutorial explores using MB Favorite Posts in Bricks, including outputting the list of favorites via a query loop.

The plugin provides a shortcode for showing user's (logged-in or visitor) favorites:

[mbfp-posts]

If you want to use a Bricks query loop for showing the list of favorites (regardless of whether the user is logged-in or not), turn on the Query editor (PHP) for the query-loop enabled item (typically, a Block element) and paste:

This is a BricksLabs Pro tutorial.

For full access login below or create your BricksLabs Pro account

Get access to all 633 Bricks code tutorials with BricksLabs Pro

Related Tutorials..

Pro
Meta Box Image Advanced Field Images in Bricks Query Loop

Meta Box Image Advanced Field Images in Bricks Query Loop

Updated on 3 Feb 2025 A user asked: Do you know what the best way to query an image from metabox gallery? I would like…
Categories:
Tags:
Pro
Meta Box Group’s Number Sub Field Values Sum

Meta Box Group’s Number Sub Field Values Sum

In the Bricks Facebook group a user asked: We can define a custom function that takes a Meta Box group ID, the sub field ID…
Categories:
Tags:
Pro
Conditionally outputting an element in a Query Loop based on date-type custom field

Conditionally outputting an element in a Query Loop based on date-type custom field

This Pro tutorial shows how to output an element in a Bricks' query loop only if the value of a date-type of custom field for…
Categories:
Pro
Sort Posts by Meta Box Group Sub Field in Bricks

Sort Posts by Meta Box Group Sub Field in Bricks

This Pro tutorial provides the steps to order posts in Bricks by the value of a Number-type of sub field that is inside a Meta…