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.