Home › Forums › Front-end Issues › Repeater / Select fields filled › Reply To: Repeater / Select fields filled
Hi @Anthony.C
Can you please fix the indentation of your code?
Your query_posts function needs to also use the meta_query param to find posts which have at least 1 repeater row of data.
The query_posts uses the same params as WP_Query (http://codex.wordpress.org/Class_Reference/WP_Query).
Currently, you are using a string, you will need to change this to the array format before the meta_query will work.
Your meta_query should look like:
'meta_query' => array(
array(
'key' => 'bons_plans_de_votre_magasin_commerce_detail',
'value' => 1,
'compare' => '>=',
)
)
Good luck
Thanks
E
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.