0

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.

  • 1
    What filter dropdown? Is this a feature of you theme? – Jacob Peattie Jul 12 '18 at 11:34
  • Dates filter, default in WordPress – Abdul Waheed Jul 12 '18 at 11:37
  • So the Archives widget? – Jacob Peattie Jul 12 '18 at 11:38
  • Possible duplicate of Include Custom Posts Type in Year/Month/Date Archive – Jacob Peattie Jul 12 '18 at 11:38
  • 2
    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. – dkeeling Jul 12 '18 at 12:06
2

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.