Home › Forums › Front-end Issues › get_field() returns null › Reply To: get_field() returns null
Looking at this example https://cfxdesign.com/create-a-custom-woocommerce-product-loop-the-right-way/
The function wc_get_products() returns an object and the products are located in a the “products” property of that object. See the loop in the example were they reference $featured_products->products
. I don’t know if this is right or not, you need to look into the WC documentation. I’m guessing that it’s not working correctly because you may not be looping correctly but that is just a guess. I’m not an expert on WC.
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.