Hi Bricks fans,
Is there a way to loop through another MB Group using the Post ID?
I have tried the Query Loop filters but without any luck.
My use-case:
I have a CPT called workout-plan and a CPT called workout
Both have Custom Fields set with Metabox plugin. I am using MB Groups and Looping through them to display data on the frontend.
Workout Plan:
CFs: https://snipboard.io/gZuJ1V.jpg
Workout:
CFs: https://snipboard.io/qegWYb.jpg
The new version will going to have a Part group.
Workout Plan: https://snipboard.io/np0ibC.jpg
Workout: https://snipboard.io/JaBfe5.jpg
So I need to update the Workout Plan with it. If I add it manually it works okay.
But I want to use a Post field to select a workout CPT and load the data from that post instead of the current Workout Plan.
I have created 2 accordions with condition to the Workout Post field ID (single_workout_for_workout_plan).
If it is set I want to display the data from the Workout CPT, if it is not set we are using data from the Workout Plan.
I have created a brief video:
Thanks for the help.