Home › Forums › General Issues › Getting custom field from woocommerce category in home page › Reply To: Getting custom field from woocommerce category in home page
thank for the reply,but i have already solve it next i post it…., your solution is bit similar, i just added following code in my loop and it did the magic.
$category = get_term_by('slug', $prod_cat->name ,'product_cat'); $custom_field = get_field('your_custom_field', $category );
echo $custom_field;
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.