Home › Forums › General Issues › Querying taxonomy field inside a repeater? › Reply To: Querying taxonomy field inside a repeater?
rlocke, were you able to sort this out? I’m having exactly the same issue – I’ve even changed my custom field to be a select instead of the original taxonomy I was using, but still nothing is returned. When I had it set as taxonomy, the ID didn’t return anything either. If I comment out the meta_query array, the query returns posts. I’ve checked that all my names are correct, correct spelling, nothing is doing the trick. 🙁 Any ideas?
// i've got the function code here as in example, only using 'projects_%_type'
$args = array(
'numberposts' => -1,
'post_type' => 'artist',
'meta_query' => array(
array(
'key' => 'projects_%_type',
'value' => 'lifestyle'
)
)
);
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.