Support

Account

Home Forums Front-end Issues ACF + WC Vendors front dashboard Reply To: ACF + WC Vendors front dashboard

  • Hi @marc-bovetgmail-com

    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 🙂