Ignore post by meta value in the main query
We can try the following alternative way: Remove the two posts we select via our custom query from the main query via the pre_get_posts action Return the two posts on top of page one via the the_posts filter Lets look at possible code: add_action( ‘pre_get_posts’, function ( $q ) { remove_filter( current_filter(), __FUNCTION__ ); if … Read more