Custom Post Type Dashboard Tab not displaying any posts
pre_get_posts doesn’t just run on the frontend, it runs on all post queries, and that includes RSS feeds, XMLRPC, AJAX, REST API, and WP Admin. You need to check in your pre_get_posts filter and exit early so that it only applies to the places you want it to apply to. e.g. if ( is_admin() ) … Read more