I have a custom post type ('faculty_profile) and a custom taxonomy ('departments'). On a page that lists all of the faculty profiles, it groups them by department. That page generates approximately 600-700 database queries. Given the large number of queries, I am pretty sure there are ways I can make the page more efficient. Do you have any ideas?
What am I doing wrong?