Support

Account

Home Forums ACF PRO Custom post types query

Unread

Custom post types query

  • Hello,

    I am having two custom post types (Patients and Visits) with one-to-many relation. Each patient has some fields (ex. name, phone etc). Each visit has a relational field with patient.

    I need to create a WP_QUERY to get patients and each patient visits object. I don’t know how i can do that, without quering multiple times for each patient. I want to create a page to have all patients with each ones visits bellow.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.