I'm looking to optimize a page where I'm using several queries (with WP Query) to retrieve similar data, and I'm considering merging these queries together then filtering for relevant data once inside a loop.
In one of the loops I want to not display subpages even though they are fetched with the query. I'm thinking along the lines of this -