Home › Forums › General Issues › Select posts by Category && Custom Field? › Reply To: Select posts by Category && Custom Field?
So, a guy on wordpress.stackexchange.com gave me this hint:
$args_jewellery = array(
'post_type' => 'jewellery',
'numberposts' => -1,
'meta_query' => array(
array(
'key' => 'select_brands',
'value' => '"' . $brand . '"',
'compare' => 'LIKE'
)
)
);
Now, why would it take me three days to wrap that shit in quotation marks and use LIKE?
Sigh!
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.