I have a custom post type registered in my WordPress. Everything is working fine except Search and Filter functions are not working in admin. For example, I have posts from 2013 but when I select 2013 from filter drop-down, I get nothing.
Are you using any pre_get_posts
hooks in your theme that might be affecting things? I've found that when the listing in the admin is screwed up, it's usually some other code snippet or plugin that is causing the issue.
pre_get_posts
hooks in your theme that might be affecting things? I've found that when the listing in the admin is screwed up, it's usually some other code snippet or plugin that is causing the issue. – dkeeling Jul 12 '18 at 12:06