How to get the particular product quantity in orders in Woocommerce

I am working on my WooCommerce project and I am sending mail to the customer and in that I am sending the particular product quantity. So, I am not able to get that particular product quantity from the order. This is code: $order = new WC_Order( $order_id ); $item_quantity=0; $targeted_id = 14988; foreach ( $order->get_items() … Read more

Show ACF field with link to ultimate member profile/WordPress user profile below the post (single post layout)

I’m using Advanced Custom Fields and I’m trying to show a custom field below the single post. I managed to get the code to render below the post, but when I set the field movie_actors and save, the entire page goes blank after I refresh it, it doesn’t show any errors on the screen although I already have debug mode enabled.
My field is set as User Object inside ACF, and the field type is user.
What I’m trying to do is to show a link to the user profile in Ultimate Member. I also tried to show a link to the default wordpress user profile just in case, and it also gives me the same result.