Search Pages 2.3 Plugin

Posts and pages

A WordPress blog includes posts and pages. Posts are often the most important part of the blog and pages were supposed to provide static background information. With this in mind, WordPress designers restricted the search capability to posts only.

There are however many different uses of WordPress and it is often desirable to search through both posts and pages. This is made possible with our Search Pages 2.3 Plugin. Our plugin is designed to work with all versions of WordPress from 1.5 to 2.3.

WordPress 2.5 and newer releases have a built-in “Search Pages” capability.

Try it !

Search Pages 2.3 is installed on this web site. Type a query in the search box at the top of the page and it will return results from both pages and posts.

License terms

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Please read the license terms above before you download the software. If you do not agree with these terms, do not download or use the software.

If you agree with these terms, you may download the plugin (.zip).


  • Download the file and unzip it.
  • Copy search_pages.php in your /wp-content/plugins/ directory.
  • Activate the plugin from the WordPress Plugin Management page.


Search Pages 2.3 replaces our Search Pages 2.0. It is based on the Search Pages Plugin by David B. Nagle. David’s plugin had been inspired by a WordPress hack created by Rob Schlüter.

43 Responses to “Search Pages 2.3 Plugin”

  1. _rs says:

    This plug-in works great, thanks!

  2. Michael Souris says:

    Thank you for updating Search Pages!

  3. Motiveauto says:

    For those of us using WordPress as a CMS, Search Pages is an essential add-in that really should be in the core project. Now updated by to work with WordPress 2.3

  4. matt says:

    I activated the plug in and I can’t seem to get it to do anything. Is there something that I need to do?

    Question moved to our Search Pages forum: plug in doesn’t do anything.

  5. dalton says:

    This is very useful. I was wondering if there was any way to distinguish in the search results whether a particular item was a Page or a Post, however? Due to the logical split of content on my site, it would make more sense to display them that way.

  6. Dan says:

    How do you get the search results to truncate so that only x number of lines are shown in the result for each item in the list of results?

    Question moved to our Search Pages forum: how do I truncate the search results.

  7. Jean-Luc says:

    Hi dalton,

    The plugin does not distinguish pages from posts. It uses the standard search algorithm of WordPress. Pages and posts all together are sorted chronologically in the search result pages (the newest appears first; the oldest is at the end).

    You could edit search.php to make posts and pages look different in the search result pages though.

  8. Alderete says:

    Attempting to download on 17-Oct at 1:17pm Pacific, I get a bunch of PHP include errors, rather than downloading the file as expected.

    Specifically, when I access the URL:

    I get the following error messages:

    [Error message removed by admin]

  9. Jean-Luc says:

    We moved the server to a new host yesterday. There were a few glitches during a few hours. Thank you for your patience.

  10. Cam Lover says:

    It works great, but i would like to have a plugin, that would ad a new line in pages so i could set tags my self.


    Edited by admin: no link to adult web sites please!

  11. Tim Cinel says:

    Fantastic, exactly what I was looking for. Thank you very much for the plugin, will give you credit for sure!
    – Tim, logon2, Web Design in Australia

  12. joda says:

    Problem: Search Pages modifies the WHERE part of SQL request, but also applies this modification to requests which are used to list the latest pages in the sidebar.


    if (!empty($wp_query->query_vars['s'])) {


    if (!empty($wp_query->query_vars['s']) && strpos($where, 'content LIKE')>0) {

    Works with WordPress 2.3 might be differnt for older WordPress releases…

  13. Gullik Gjertsen says:

    Thank you very much!

    This is a very good plugin =)

  14. Jamie says:

    Works great! Thanks 🙂

  15. Sirianne says:

    Works perfectly. Thanks!

  16. manele says:

    is a pretty cool plugin! thx!

  17. Jason Heath says:

    Great plugin! I just installed it on two WP sites of mine, and it works like a charm. Thanks!

  18. Johnny says:

    umm…okay..sorry but i activated the plugin but where do i get the code to plug into my sidebar to make it show up? 🙂

  19. Jean-Luc says:


    See this thread in the forum : Should there be a searchbox?

  20. MRDPE says:

    Great plugin – just what I was looking for since my page content is important. Thanks.

  21. Dominico Hastings says:

    Simple but great. Good work.

  22. Diman Hisco says:

    Very useful plugin. Thanks for sharing.

  23. Mario says:

    Something I dont like for WordPress developers is they very often decide what you need or do not need as wordpress user or designer. Many plugins I see are features that WordPress developers decided you dont need, when in fact, they are absolute obvius most people need them, so why not let the user choose?

    This is one of those obvius missed features in wordpres and a really needed plugin and Im happy you made it. It works great.

    (wordpress 2.3.2)

  24. Benjamin says:

    This is incredible! Worked like a charm!

  25. Populara says:

    thank you for this plugin, my blog is based on pages not on categories and this help me alot! thx!

  26. Nate says:

    This plugin is simple and really works perfectly for the site I’m implementing. Thanks!

  27. Matt says:

    This plugin solves a huge problem for me – my site has a huge amount of content that folks access on static pages – and the ability to search makes life much easier. I was really annoyed that this was not included in the basic search functionality. Thanks for fixing a huge hole in WordPress as content management system.

  28. says:

    This is a great plugin, so easy, worked like a charm. installation time 30 seconds!

  29. Lonny says:

    Thank you for this great plugin. I searched for this setting in the core, before I realized that it wasn’t there. Thank you for filling that gap.

  30. Buzzkill says:

    No love on 2.3.3 hosted on Windows (If that has anything to do with it). Any ideas? This is a “gotta have” plugin for WP. I am still suprised that it is not an option of the core. And so I am here. 2.3. either does not work with 2.3.3, the Cutline theme, or maybe because we are hosted on Windows. Or it could be a combination of the three. Any ideas?

    Thanks! It returns results from posts only.

    Question edited by admin and moved to our Search Pages forum: Search Pages + 2.3.3 + Windows + Cutline.

  31. Sabina says:

    Thanx for this plugin, works GREAT, especially if the site has a large amount of info on static pages….
    just one little quistion/request/inpiration 😉
    maybe the search engine cound generate just a little bit of the text the engine found on the page, so that users can deside exactly what page contains the right info….

    buuut, who am i to whine…. LOVE the plugin… no doubt about that….

  32. Göran says:

    Perfect! This was exactely the plugin I was looking for. Thank you!

  33. Ido Fishman says:

    Thanks for the plugin, just installed it on several of my sites that uses WP as a CMS.

    Any change you know how to present the search results as just the title so it would look more like real google search results?

    Question moved to our Search Pages forum: Search results like in Google.

  34. Vitamins blog says:

    I’am using in my blog. It’s cool. 10x

  35. namrmic says:

    thx, good work!

  36. buyers web says:

    thankyou for this plugin…it works well and my default search box stopped working for some reason so im glad to use this plugin well..

  37. Adam says:

    For some reason this plugin isn’t working on my site any more. Any guesses why this may be happening? I am in the process of upgrading to 2.5, I’ll disable the plugin prior to upgrading and then re-activate and see if Search Pages works again after the upgrade.

  38. Adam says:

    Nevermind my previous post. Functionalty was being overridden by the Advanced Category Excluder plugin. I was able to easily hack that plugin to get Search Pages working again! Thanks for the awesome plugin!

  39. Keren says:

    Nice, thanks for sharing it.

  40. Global Fusion says:

    Thanks for the plugin. I have it installed in a couple of 2.5.1 and works like a charm. Cheers!

  41. Naat says:

    Tnx very much!
    Was looking for something like this!

    keep up the good work!

  42. Millisami says:

    I tried the search without adding this plugin in WP2.5 and the page is also displayed.
    Is it that WP2.5 already lists pages as well when we do the search?

  43. Jean-Luc says:

    That is correct.

    Source: About WordPress 2.5 in the WordPress blog

    User Features :
    Search posts and pages — search used to cover just posts, now it includes pages too, a great boon for those using WordPress as a CMS.