Display relationship fields into custom post types edit page

Support MB Custom Post Type Display relationship fields into custom post types edit pageResolved

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #24035
    EliodataEliodata
    Participant

    Hi,

    I will explain with an exemple because of my poor english.
    I have a custom post type "prospect" with many fields
    I'm using Woocommerce
    I set up a custom field WordPress > user to make a relation between the cpt and a user when he becomes a woocommerce customer
    Everything is ok

    Is it possible to display other woocommerce datas once this relation have been set up? I would like to see the orders, bookings etc... made by the related user into the "prospect" cpt edit page.

    Everything is working on the WordPress backend, no frontend needed at the moment.

    Best regards

    #24042
    Long NguyenLong Nguyen
    Moderator

    Hi,

    The MB Relationships extension only helps you to create a relation between posts, terms, and users. You can follow the documentation to get the connected user then get orders or related information from the user ID. Get more details on this topic https://stackoverflow.com/questions/51980040/get-all-orders-and-orderdata-of-a-single-customer-in-woocommerce-by-user-id.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.