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.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users