Meta Query in Query Loop

Hello,

I am a new to Bricks making my first website with it. I am strugling with meta query…

I use ACF (free). I have custom posts Menuitem, it has a checkbox custom field “is_soup_of_the_day” with value “yes”. I need to output the post that have this checkbox checked. I have read all the topics here but I still do something wrong, as it does not work. Please help. All my website is based on such a queries.

My ACF field and Meta Query settings:

I also tried to put “1” instead of “yes” as Meta value, and to replace meta key with “acf_is_soup_of_the_day” (as it is shown in the bricks list of dynamic data). Nothing works.

What am I doing wrong?

@neposeda did you ever get an answer/solution?

He would have received it long ago if he had written in support. And if it’s to the point, then you need to compare via LIKE

I use the query editor for this. This is how I set it up in Bricks where the acf field is called “obersee_choch_mitglied_status” and the option is “praesident”:

return [
    "objectType" => "post",
    "post_type" => [
        "obersee-choch"
    ],
    "meta_query" => [
        [
            "key" => "obersee_choch_mitglied_status",
            "value" => "praesident",
            "compare" => "LIKE"
        ]
    ],
    "orderby" => "date",
    "post_status" => "publish",
    "paged" => 1,
    "posts_per_page" => "1"
];

Cheers

Patric