Home › Forums › Front-end Issues › Select field filter not working › Reply To: Select field filter not working
Hi @jusseb
No. The get_sub_field function can be used only within a have_rows or has_sub_field while loop. You have a custom loop, so you can’t use this function.
Instead, you can find your value simply with this code:
$value = $row->meta_value;
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.