Home › Forums › Front-end Issues › Woocommerce using acf into templates (categories terms) › Reply To: Woocommerce using acf into templates (categories terms)
Hi @ayottepl
Sorry I can’t be of much help, I don’t read or speak french, although I wish I did.
The $post issue can be solved by looking on woocomerce’s documentation to find a function which finds the current product ID.
Knowing the ID will fix the issue, because you can use the ID as a second parameter to the get_field function!
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.