Support

Account

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.