Hello,
Currently running Bricks 2.1.4
I have a block that is set to use a User query loop. Then I have a nested block set to iterate through an ACF repeater field (saved against the user object). Within that query loop I have a component to render the output.
It’d look like this:
Block 1 (User Query)
–Block 2 (ACF Repeater Query)
—-Component ( Renders Output )
In my component I’d like to output the user’s name from the user query. However using dynamic data tags such as {wp_user_first_name} inside the component, it refers to the current user, not the user from the loop.
If I use the same dynamic data tag within the user query loop (Block 1 from above), I can get the user from the query. If I place the same dynamic tag within Block 2, it is the current user not user context from the query loop. I’ve also tried setting a property in the component and populating it with {wp_user_first_name} but the context is still the current user, not the query loop user (which makes sense since the second loop/Block 2 is destroying the user context somehow).
Perhaps my design isn’t valid? Do I need to use a custom php query instead of the ACF repeater query to preserve the user context?
Let me know any further information I can supply to help explain my situation and desired result.
Thanks.