How to get an array of providers IDs?

Hello!

I need to create a nice looking list of experts (providers) which links to their bio-page where then the people can book a service from them.

I know how to make the bio pages and display the calendar and the services dropdown related to that provider.

what I’d need is an easy way to get an array of experts IDs and their related bio-pages IDs, so then I can loop trough it and display their name, the image of the page, the excerpt/description and eventually other fields (like a plain text list of the services they provide).

is there any function which can help me out here?

I had a quick look and I’ve seen I could do a mysql query and join the app_workers table with the usermeta, but I was wondering if there was an easier and quicker way..

especially because then I’d also need to create other loops which list the providers of a given service (like you click “business” and you can see only the providers which can do that service), and I’m not sure if I’ll be able to do this with a mysql query, as I’m not very expert about them..

Any suggestion? :slight_smile:

Thanx for your help!

Andrea