I'm using a custom post type and showing 20 of them per page on the homepage. I'm using QP_Query.
One custom field for the custom post type (called mixtapes) is a checkbox called "unreleased" (set to true/false), and its basically a post that i dont want to include in the loop.
So far I put a conditional if inside the while loop to display only if 'unreleased' isnt set to 'true', but the problem is its (obviously) not applying to the loop itself, so as a result... the pagination 'sees' 40 posts (2 pages) when really theres only 1 unreleased album (which should be 1 page, but 2 pages show up). on the 2nd page, is no results.
Likewise when i want to show the 'top 10' albums which ARE released, it actually shows only 9 because the one unreleased one hasnt been removed from the actual loop, only conditionally 'hidden' after the fact.
How might i work this out so the loop keeps track of the posts that have been removed given a certain custom_field condition?