WordPress.org

Support

Support » How-To and Troubleshooting » Modify Queryposts to search for pages?

Modify Queryposts to search for pages?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Use the argument ‘post_type=page’

    I tried that, but there seems to be some kind of code that prevents pages from coming up with any options other than search terms. When I enter tags or categories, even if there are some assigned to a page, query_posts won’t return them.

    I need to be able to search for pages with a combination of tags, categories, or search terms. That works fine for posts already, but even restricting it to page using what you showed doesn’t seem to work 🙁

    I checked out search-everything, but it didn’t seem to work. The search plugin I’m writing uses query_posts so if search-everything is supposed to modify that to work the way I need, then I’ll have to give it more time and see what I can do.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Modify Queryposts to search for pages?’ is closed to new replies.