Bricks query loop + meta query

hey guys, I need some help in here.

i have 2 cpt,
1- event - event has acf field club_name ,
2- Club Name -

i need to fetch Related latest Event (that has acf field club name selected) on the CLUB page footer .

i assume bricks can do this with no coding ?
block > query loop > meta key : {club_name} , meta value : {club_name} , compare : LIKE. ?

is there anything I’m doing it wrong ?

The meta key in your case has to be just club_name (the name of your custom field). The meta value needs to be {post_title} (since you want to compare the event’s custom field value to the title of the club).

Instead of using a regular text field I’d recommend using a post object field though. See Video uploaded to CleanShot Cloud.

At the end of the video I say that you have to select “Post ID” as the return type for the custom field instead of “Post Object”. This is not true. You can choose both. It does not have any relevance for the meta query.

1 Like

This video is gone. Can you please re-post it?

I’m trying to sort out: Using Meta Query with ACF

Thank you