Why is the change in my query not taking into account
The issue seems to arise because the pre_get_posts hook you’re using to filter media library queries might be affecting other queries as well, and your filtering condition isn’t targeting the exact query you’re trying to modify. Here’s a detailed breakdown and a solution: Key Points to Address: Scope the Query Correctly: Ensure your pre_get_posts filter … Read more