Hi there, I want to create a staff directory page. I have a CPT named Staff, with a Category for the department.
I want to create a page that loop through the Staff Categories, an inside the category pull all the staff members that belong to it. I don’t want to create different loopers per category, I want this to be scalable, if I add a new category, it should be pulled on the front-end without me touching anything else.
Something like this:
I can’t figure it out how to do the loop.