Home › Forums › General Issues › Help retrieving with ACF to define posts shown – Using a Shortcode › Reply To: Help retrieving with ACF to define posts shown – Using a Shortcode
Not really sure, but what are these values
'color' => $color,
'class' => $class,
'fabric' => $fabric,
'category_name' => $category,
category_name specifically seems to be empty. I’m not sure what happens if you include this query parameter and do not include a value. Is it ignored or will it only get posts that have no category? There is nothing in the WP_Query docs that say this can be empty. Empty values can have odd results.
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.