Home › Forums › Front-end Issues › Displaying custom field on woocommerce category page through functions.php › Reply To: Displaying custom field on woocommerce category page through functions.php
You need to create an action or filter using one of the hooks used on WC template that you are trying to alter.
In your action/filter you need to supply ACF with the second argument ($post_id) to get the field from the correct category.
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.