Support

Account

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.