- This topic has 4 replies, 2 voices, and was last updated 2 weeks, 2 days ago by .
We have a relationship between Doctors and Locations. On the Location side we have "Doctors at Location": https://share.getcloudapp.com/yAukWXew
You'll notice that many of the select fields are blank in that screenshot. The relationship is working just fine, and if I query the location in wp_mb_relationships I see all the IDs in place. I can also confirm that the relationships go to real doctors; I can even see the Location from the other side: https://share.getcloudapp.com/o0uZjN1K
When I click on the dropdown and type in the missing doctor's name, nothing pops up. So it seems like the query is perhaps being limited and there are more doctors than it queries (i.e. posts_per_page). I tried adding the following to the relationship, but it didn't seem to help:
'field' => [ 'query_args' => [ 'numberposts' => -1, ], ],
As a note there are ~250 doctors.
- You must be logged in to reply to this topic.