I’ve just encountered some issue on my company’s website and because previously the feature was working and no changes except theme update was made, I assume it’s a bug or some misunderstanding from my side.
We have a query loop that iterates over ACF Repeater Field which contains years of publish ([2024,2023…]). Inside we have another query loop that displays post which ‘year’ matches value from repeater (like here → Query Loop – Bricks Academy but instead changing ‘post_type’ we change ‘year’).
While using {acf_media_o_nas_rok_publikacji} the year is returned properly as long as is used outside inner query loop. Inside posts loop {acf_media_o_nas_rok_publikacji} returns empty value so it displays all posts.
So:
the feature worked before 1.9.7 update
acf_field works properly outside inner query loop
i tried changing 'year' => $year, to 'year' => [$year], and 'date_query' => ['year' => $year], but nothing changed, however 'year' => 2022, or 'year' => '2022', works
Hi Jakub,
Welcome to the forum, and thanks so much for your report!
We have already received an email report on this problem that is almost identical to yours. The problem will probably be fixed in the next version. I will let you know when it is ready.
The task is currently in review. It should be included in Bricks 1.9.9 (stable) if nothing unexpected happens. I’ll update this thread as soon as that’s the case.
Hi Karol, welcome to the forum. The task is still in review. As I said, I’ll update this thread as soon as the fix is included in one of the next versions.
Can you please provide a staging site with the issue and send us (help@bricksbuilder.io) admin access to test a potential fix?
Please include this thread URL as a reference.