filter search result with custom post type meta key
This might not have worked before, but WordPress’s meta queries now support the relation parameter. To complete what @s_ha_dum was looking to do, simply add the relation parameter (as OR) and add a second meta query for NOT EXISTS. Example: function searchExcludeOldMatches( $query ) { //if we’re on the admin panel, or it’s a search, … Read more