Home › Forums › General Issues › How to use this code in acf ? › Reply To: How to use this code in acf ?
hi . I am a beginner in coding and this code is a professional template to display special discounts on the home page. I intend to use this code in my theme. I understand that I have to use $slider_off = get_field('slider_off', 'option');
in the template options page and I have already used it and it works fine for enabling/disabling. But I can’t make a connection between this code $item = $list['slider_off_product'];
and the WooCommerce post. I don’t understand how it communicates with the product and displays product information. Thank you for your help in this matter.
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.