Exclude a WordPress post from pre_get_posts if a field is null
@Howdy_McGee – Thanks for pointing me in the right direction. Below is the code I used. By the way, I know that the FacetWP plugin can be a little particular with queries. In case anyone is wondering, this works with it. function set_posts_per_page_for_attorneys_cpt( $atty ) { if ( !is_admin() && $atty->is_main_query() && is_post_type_archive( ‘attorneys’ ) … Read more