Home › Forums › Add-ons › Repeater Field › Mistake in documentation ? : Query posts by custom fields › Reply To: Mistake in documentation ? : Query posts by custom fields
That is a solution to the problem I had not thought of, and it may be the only way to actually do this, at least using WP_Query. The problem will come in when you have more than 10 rows in a repeater.
The only error I see is that you have an extra underscore in you meta keys, they should be.
'key' => 'dates_'.$row.'_start_date',
Sometimes there is no elegant solution. My only concern for this would might be the length of time it takes the query to run, that might give you a problem.
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.