I have content that is only visible to staff members assigned the ‘staff’ user role. Additionally, I have a page that displays all website content by querying different custom post types.
Posts that are intended exclusively for staff members are tagged with ‘staff’.
Is it possible to create a query loop that:
Displays all posts for users with the ‘staff’ role, including those tagged as ‘staff’
Hides posts with the ‘staff’ tag for users who do not have the ‘staff’ role?