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.
Download
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).
Installation
- 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.
Credits
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.
October 1st, 2007 at 4:00 am
This plug-in works great, thanks!
October 1st, 2007 at 5:41 pm
Thank you for updating Search Pages!
October 1st, 2007 at 6:00 pm
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 InternetOfficer.com to work with WordPress 2.3
October 5th, 2007 at 2:09 am
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.
October 15th, 2007 at 10:42 pm
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.
October 16th, 2007 at 1:52 pm
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.
October 16th, 2007 at 4:42 pm
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.
October 17th, 2007 at 9:20 pm
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:
http://www.internetofficer.com/download/search_pages.zip
I get the following error messages:
[Error message removed by admin]
October 18th, 2007 at 6:05 am
We moved the server to a new host yesterday. There were a few glitches during a few hours. Thank you for your patience.
October 28th, 2007 at 1:17 am
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.
cluda
Edited by admin: no link to adult web sites please!
November 14th, 2007 at 7:07 am
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
November 19th, 2007 at 2:44 pm
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.
Replace:
if (!empty($wp_query->query_vars['s'])) {with:
if (!empty($wp_query->query_vars['s']) && strpos($where, 'content LIKE')>0) {Works with WordPress 2.3 might be differnt for older WordPress releases…
November 22nd, 2007 at 3:52 pm
Thank you very much!
This is a very good plugin =)
December 7th, 2007 at 1:20 am
Works great! Thanks
December 7th, 2007 at 1:51 am
Works perfectly. Thanks!
December 10th, 2007 at 8:53 pm
is a pretty cool plugin! thx!
December 13th, 2007 at 8:02 pm
Great plugin! I just installed it on two WP sites of mine, and it works like a charm. Thanks!
December 15th, 2007 at 12:45 am
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?
December 15th, 2007 at 7:58 am
Johnny,
See this thread in the forum : Should there be a searchbox?
December 18th, 2007 at 6:02 pm
Great plugin – just what I was looking for since my page content is important. Thanks.
January 6th, 2008 at 9:42 am
Simple but great. Good work.
January 7th, 2008 at 6:14 am
Very useful plugin. Thanks for sharing.
January 7th, 2008 at 9:22 am
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.
Thanks
(wordpress 2.3.2)
January 17th, 2008 at 12:39 am
This is incredible! Worked like a charm!
February 18th, 2008 at 8:45 am
thank you for this plugin, my blog is based on pages not on categories and this help me alot! thx!
February 19th, 2008 at 2:20 am
This plugin is simple and really works perfectly for the site I’m implementing. Thanks!
February 23rd, 2008 at 9:57 pm
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.
March 8th, 2008 at 11:01 pm
This is a great plugin, so easy, worked like a charm. installation time 30 seconds!
THANK YOU THANK YOU and again THANK YOU!
~Brad
March 12th, 2008 at 6:31 pm
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.
March 14th, 2008 at 4:12 pm
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.
March 28th, 2008 at 9:25 pm
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….
March 29th, 2008 at 3:11 am
Perfect! This was exactely the plugin I was looking for. Thank you!
March 29th, 2008 at 8:06 pm
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.
April 2nd, 2008 at 11:36 am
I’am using in my blog. It’s cool. 10x
April 14th, 2008 at 10:29 pm
thx, good work!
April 15th, 2008 at 6:53 pm
thankyou for this plugin…it works well and my default search box stopped working for some reason so im glad to use this plugin now..works well..
April 22nd, 2008 at 8:15 pm
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.
April 22nd, 2008 at 9:31 pm
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!
May 2nd, 2008 at 3:00 pm
Nice, thanks for sharing it.
May 13th, 2008 at 1:54 am
Thanks for the plugin. I have it installed in a couple of 2.5.1 and works like a charm. Cheers!
June 11th, 2008 at 10:00 pm
Tnx very much!
Was looking for something like this!
keep up the good work!
July 13th, 2008 at 12:32 pm
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?
July 13th, 2008 at 1:38 pm
That is correct.
Source: About WordPress 2.5 in the WordPress blog