I have two types of user roles- 1. Regular 2. Temporary. Both types of users can create posts. I have two different pages that need to list posts from specific user roles only. So ‘page-1’ should list only posts where authors have user role ‘Regular’ and ‘page-2’ should list only posts where authors have user role ‘Temporary’. I can show posts using query loop but cannot filter based on author’s user role. I am not sure where to start from.
I am relatively new to php and wordpress queries. So any guidance or resource on how to achieve this would really be appreciated.