Home › Forums › General Issues › Including values in ACF Fields in “Users” Location in order export › Reply To: Including values in ACF Fields in “Users” Location in order export
Thanks, John. I was able to figure out how to pull from the user level using the following function:
function my_get_customernumber( $uid ) {
return get_field( ‘CustomerNo’, ‘user_’ . $uid );
But now I’m struggling to figure out how to pull another field from the product level. Below is what I tried but it’s not working.
function my_get_brand( $uid ) {
return get_field( ‘brand’, ‘product_’ . $product_id );
I’m assuming what I have in bold above may need to be changed to something else. Any idea what I’m doing wrong?
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.