• When I click “Pages” in my WordPress dashboard, I see a table that includes all of the pages I have created. At the top right of the screen is a field next to a “Search Pages” button. However, my searches only yield results from my posts. How can I use this field to search pages?

Viewing 1 replies (of 1 total)
  • Hey Kevindp,

    It sounds like something is altering/interfering with your default search queries. This can sometimes be done accidentally through the pre_get_posts function when an is_admin check is left off.

    Do you have a local or staging environment for your site? I would try switching the theme and disabling your plugins to see if you can debug where the issue is coming from.

    As mentioned above, maybe take a look in your theme for any references to pre_get_posts to see if the queries are getting altered at some stage.

    Hope this helps

    Adam

Viewing 1 replies (of 1 total)
  • The topic ‘Dashboard “Search Pages” only finds posts’ is closed to new replies.