how do i remove posts from a WP_Query so the pagination is right?
Rather than querying all posts and then only displaying those that match the criteria, query for posts that match the criteria. WP_Query allows you to do just that with its meta-key/meta-value attributes. For instance, to get posts where the custom field unreleased is to ‘false’, somewhere before the loop: global $wp_query; $customField = array( ‘meta_key’ … Read more