Home › Forums › Front-end Issues › ACF + WC Vendors front dashboard › Reply To: ACF + WC Vendors front dashboard
Just like the code in the link you’ve shared, you should use the following code for the post_id
option:
'post_id' => WCVendors_Pro_Vendor_Controller::get_vendor_store_id( get_current_user_id() )
That code should get the vendor store ID (which is a post type, I believe) so you can get the data from that store post type.
If you want to add it to the user dashboard instead of the store post type, then you need to do it like this:
'post_id' => 'user_' . get_current_user_id()
This page should give you more idea about it: https://www.advancedcustomfields.com/resources/how-to-get-values-from-a-user/.
I hope this makes sense 🙂
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.