The query appears on a Provider page (CPT). On that same page I have another query pulling from 2 different post types: Posts and Resources (another CPT). Each of these 2 post types has a Relationship set up with the Provider page the queries are on.
Is it possible to modify the code snippet linked above to filter the query based on the Relationship per post type? i.e., when a Post is pulled by the query, filter by the post-provider Relationship, and when a Resource is pulled by the query, filter by the resource-provider Relationship.