Search Everything increases the ability of the default Wordpress Search, options included:
Search Everything increases the ability of the default Wordpress Search, options included:
- * Search Every Page
- * Search Every Tag
- * Search Every Category
- * Search non-password protected pages only
- * Search Every Comment
- * Search only approved comments
- * Search Every Draft
- * Search Every Excerpt
- * Search Every Attachment
- * Search Every Custom Field (metadata)
- * Exclude Posts from search
- * Exclude Categories from search
… I’m still looking for some help so please contact me if you’d like to contribute.











Cool, man! Nice plugin. Any luck making the search options?
Thanks again!
Holy crap, your tag page is awesome! What plugin is that? Also, what is that nifty pop up over links?
Do you mind shooting me an email?
Thanks, this works great! You can see it in action at http://OrangePolitics.org
Wow, your fancy tooltips is much faster and better integrated with Safari than mine! I’m jealous! What are you using?
I don’t know what you are talking about could you please explain.
Nice plugin! Thank you so much. It’s hard to do dark on a site but you did a great job.
Thanks for the plugin!
Is it possible to search the Links also? I’m building a site with 100’s of links, and I can’t seem to find a way to search them.
I think it could be done but nothing I could do.
Hi. Nice plugin. If I only knew a little more about how to use it.
So far, I emptied the (), included add_comments_search_join() somewhere in the searchform.php page of my blog, and it seems to work, so I must have done something right… (I don’t know much about php…).
However, in the search results, only the links to the posts themselves appear, and there is no distinction between whether the hit is in a post or a comment. Is there a way to make that distinction, so that what comes up in the result list is the text in which the word appears, and not just the head and excerpt of the post?
another question: how do you sort the recent comments by comment? I want that too! I’m using the plugin get-recent-comments by Krischan Jodies, but I haven’t found a way to get the sorting that you have here. Is there another plugin?
I’m using your plugin and it’s working for me at my resume site, which is great since the search didn’t work because I had everything on “pages” as opposed to posts.
However, when I do a search, I see this message on the page where it found the search in the post:
window.document.getElementById('post-1′).parentNode.className += ‘ adhesive_post';I’m assuming that’s because I’m using the “adhesive” plugin to keep that post at the top of the page, but is there something for me to do to get rid of that?
Thanks so much for your help.
Not sure. I would ask that particular plugins author.
Sorry, didn’t you create the search everything plugin?
Seems to work great! Is there anyway to modify the plugin to search multiple blogs? I’m using the Multiply plugin to manage multiple blogs and would like a single search for all of them that does what your plugin does. Since each blog is simply an additional table in the same WordPress database, I assumed I could find a way to tell your plugin to search the additional databases as well, but I’m not very good at this stuff. If possible, it would be a nice feature addition! But, heck, I’d even settle for a hack
Thanks again for a great plugin!
i’ve been using it for a while now and love it. i’m actually not a programmer but still managed to implement it
would you know of a way to extend the search capabilities to more handmade tables?
thanks, nader
Sorry, no to both of those last two questions.
I am having difficulty getting it to search for tags created with Jerome’s keywords plugin. Is there an incompatability, or do I need to do something to make it work?
Say, thanks for the plug-in. It seems to be working fabulously. A couple of meta-observations, though:
The Plugin URI in the plugin itself is “http://dancameron.org/searcheverything/” — unfortunately, you seem to have moved the page (to here). This means that when users click the link on the admin Manage Plugins page, we get a 404. A redirect the the canonical home of Search Everything would be a kindness for all concerned.
Too, it would be nice if you provided an explicit statement of the current version number somewhere prominent. I had to download a new copy and peer inside to see if it had been updated from v 0.01 yet. For better or worse, until the wp-plugin-mgr plugin returns, one has to rely on the author’s plugin page to stay up to date.
Hi!
I know its not that easy, but is it possible to include categories aswell in the search? Sometimes the name or the description of a category is the keyword users are searching for, but they get “no results”…
Would be nice to read about that!
Regards!
Jens
Can someone let me know the code to insert for this plugin to display?
Thank you for your help.
Still doesn’t work with BLIX theme users
Hi, does this plugin work with Wordpress 2.0? If not any plans to do so?
thanks
Mike
It should. I’m using a similar plugin except the searching of comments and it works fine.
It works very fine in WP 2.0, I just tested it. Thanks for this great plugin.
Nice Plugin. Will be great an option in order to select certain page or post Ids in order not to be included in searchs
Just wanted to say thanks, for the plugin - it’s really awesome… as a non-programmer I have to say I really appreciate the open source community, keep up the great work.
Awesome plugin! Love it! Thanks!
Can someone let me know the code to insert for this plugin to display?
Thank you for your help.
You just inall it. No code to insert.
Just let the default search as it?
Thanks
HI. I was using your plugin with great success up until recently and I don’t understand what the problem is i.e. I’m getting a 404 from searches that should definitely be there (since I’m see it lol) . I just Viewed your Source and see this stuff that I don’t have and didn’t see in the “upload php & activate, that’s it” instructions:
**********************************************
script type=”text/javascript” src=”http://dancameron.org/wp-content/themes/2.2/js/livesearch.js.php” /script
//
I use livesearch so it is a separate mod to wordpress. But everything should work out of the box with this plugin, if it doesn’t it could be your permalinks. Not sure why you would have any problems.
You could also deduce if it’s the plugin by deactivating it and searching the core search of wordpress to see if you have the same issue.
Yea, I did that and nothing was working but I’m good now by incorporating the default theme statements and your plugin which does retrieve words from my comments.
However, since the word I was purposely searching for was in the comments, it pulled up the post but didn’t expand the comments so a User might think that it was a bogus return, is that something I screwed up or are you maybe planning to have the comments expanded, maybe even the word highlighted, in the future.
I just want to make sure I’m getting the most out of what it has to offer at this point. Thx.
Nice Plug-in. Works on my K2 install right out of the box….Thanks!
Hi,
Was just wondering if you can use some kind of code within the loop of the search.php template file to tell whether or not each ‘post’ returned by the search is a post, page or comment? So that each can be treated differently by the theme.
Thanks.
Hey Dan;
I’ve extended Search Everything to incorporate some of the items in your todo list, building an admin interface and also adding the ability to search drafts and attachments if so desired. Hope you don’t mind.
You can take a look at http://kinrowan.net/blog/wordpress/search-all. Comments welcome.
cori
in the search results only the links to the posts are shown . Is there a way to show the text in which the word appears as highlighted ?
That’s a search function, doesn’t have anything to do with this plugin. I would recommend Livesearch if you want that functionality since it’s built in.
i want to learn how i can make your plugin work with this search hilite plugin ?
http://www.blog.mediaprojekte.de/index.php?s=got
i want my search results show up like that. i have no posts in my site, there are only pages. is there a way to do the search results like this ?
Hi Dan! Search-everything really lives up to the true plug-in spirit: Just plug it in and enjoy the light! Thanks, Reiner
The plugin is not working for me. In the admin interface i have to update the Options twice before they “stick”.
Afterwards, search can’t pull up any comment results. Any ideas on where to look? It’s a pretty standard Kubrick theme.
Hi Gray;
I don’t know anything about the neccessity to double-set any of the options, but I can say that the failing of the comment search is the result of a bug that I introduced when I modded Dan’s original plugin. I let Dan know of the bug yesterday. My mod of Dan’s plugin has the correction already in place.
I’ll try to fix it this upcoming week. Keep your eyes open.
Dan and Cori, thanks.
What is the core difference between your two plugins?
Cori, I left a message on your site. Your downnload link still points to the old version.
Everything should be fixed now.
SHIT, my host doesn’t allow files-starting-with-a-dot uploads. I had this same problem with K2 a few months ago.
You only need the plugin. What hidden files do you see? I know that OS X archives are extracted weird on PC. Anyways, I’ll have a look but in the meantime all you need to upload is the plugin.
._.DS_Store
.DS_Store
._search_everything2.php
gpl.txt
search_everything2.php
So all I need is the last one? Okay…
yeah, don’t bother with those files except of course search_everything2.php
I had to select the first 2 boxes under Options twice but it’s all good, worked for comments too! Thx.
Thanks Dan. Great plugin.
If you’d like to add the ability to search Category descriptions, check out my post on how to customize this plugin or simply download my update to v2.1 here
Cheers!
Dan, thanks for this man. You’re awesome. I’m totally getting on this bandwagon late but hey, better later than never.
I copied search_everything2.php into my plugins directory (I honestly don’t know what to do with the rest of files). I can see it in the plugins section and activate it. Then when going to “Options” I see this:
What’s wrong?
Warning: sev_option_page(/home//public_html/wp-content/themes/connections/searchform.php): failed to open stream: No such file or directory in /home//public_html/wp-content/plugins/search_everything2.php on line 224
Warning: sev_option_page(/home//public_html/wp-content/themes/connections/searchform.php): failed to open stream: No such file or directory in /home//public_html/wp-content/plugins/search_everything2.php on line 224
Thanks for this plugin it’s great and working. Wonder this is not built into the standard package of WordPress so obvious!
Wonder if you would also modify this to include tag file, I use UTW 3.1 for tagging but search doesn’t cover tags inserted into the post.
@john: same thing happens to me. Looks like this plugin won’t work unless your theme has a searchform.php, which mine doesn’t. Shame, as the features sounds really nice.
My mistake, it does work, it’s just that top part of the options page doesn’t.
Yeah, if I do anything else it would be to include a tag search within the plugin as an option. i think I’ll contact Christine of UTW.
Jon: Yea, it seems most themes don’t support the search feature on the plugin page, I’m contemplating taking it out.
Hey Dan (et. al.);
Looking at John’s error, I determined what I goofed up regarding the search box on the options page in some themes. Since I only initially tested this on my own mod of the WP Default theme I didn’t realize that I was relying on something not in the core WP install.
Version 0.3 of Search All (http://kinrowan.net/blog/wordpress/search-all/) resolves this issue; Dan, please feel free (of course) to include this in a newer version of Search Everything.
Hi Dan, i’m using your plugin on my site, it’s my first time with wordpress.
Is there any chance you could update the plugin so it includes results from the only faq plugin for wordpress i can find, you can see it over at http://rane.hasitsown.com/blog/plink/technical/33/wordpress-faq-plugin/.
If you could integrate that, it would be greatly appreciated.
@john May 7th, 2006 at 11:48 pm
@jon May 14th, 2006 at 2:22 pm
Reason for the error:-
This error comes when the theme doesn’t include searchform.php. Since the theme doesn’t have searchform.php, the default one will be used, so it shouldn’t harm to copy the default searchform.php into your theme directory.
Suggested solution:-
Copy searchform.php from /wp-content/themes/default to /wp-content/themes/[theme]
Make it writable so that you can modify it and bingo!!!
I modified the 2.2 version to allow it to search inside miniposts (made with http://doocy.net/mini-posts/ plugin). which by default are hidden from the loop.
You can download it at: http://www.junyent.org/blog/index.php?p=468&lp_lang_view=en
Ã¥þрþшðÑ? штуúð
Dan,
thanks for the great plugin - excellent stuff. I wondered if you or someone else might be able to assist me with an issue i have please.
I have a form on my website allowing users to submit info - this info goes to a news table i have created in my WP database. I then have a page which displays this info (based on a sql query i guess).
Now when i search for a word which i know is in this table of info, this page is not included in the search results. Any idea of what i can do to enable my new table of info to be included, or is this not possible as it is in a different table with results only loaded on the page based on the sql query …. im not sure if i know exactly what im talking about, but perhaps this will make sense to someone.
Thanks in advance for any help.
Spam alert!
Thanks! I have added images with captions to my site, storing the image metadata and captions in a new table. Your plugin allowed me to add captions to the search function without figuring things out from scratch.
Awesome plugin, one question, how do I get an excerpt of the page to display with the search results?
I assume there some php for it but I don’t have it. Right now all I get is the page title.
Thanks.
I am too having problems with my theme not having searchform.php but If I use the search all plugin which you suggest there is no longer an error.
another question would be if you really plan to integrate searching inside tags I would really love that as my site relies heavily on tags.
Hi
Just a small error report:
If the search finds nothing, it says “NothingNot Found”instead of “Nothing found”
I just downloaded it and installed it on two blogs and it doesn’t do anything. I’m having similar results to #comment-15906 above.
Strange, I’ sorry you’ve found those issues. I’ll try to troubleshoot them on the next release.
Er, it doesn’t seem to do nothing. I think that the problem is that I don’t have a searchform.php or whatever in my theme dir (and I don’t know how to do it), i’ve only this code in my sidebar
(”>
” />
)
What can I do? :p
I’m getting this error after deleting the earlier version and uploading the 2.2 file: Cannot load SEv_options_page. TIA.
You’re the man dan, I’ll have to let others know how helpful you’ve been with all these questions.
Hey,
Great plug-in. Doesn’t get easier than this.
I found you from the wordpress plug-in database site (http://wp-plugins.net/), where they’re still posting an older version of this plug-in (with a link that points to idancameron.com/blah….. ) Also lists that its compatability only extends to WP 1.5.
I would update them, but I don’t want to seem like I’m taking credit.
Thanks again,
Very nice Plugin, a question was raised whether I can search everything, I said i don’t think so, now i found this …
Thx mate
hey,
first off all I found my self in heaven finding out you integrated the tag/metadata search as an option.
so, first of all, 100 hugs fr that!
then, undfortunately, activating this option, brings:
“WordPress database error: [Unknown column 'languages.language_idLEFT' in 'on clause']”
the other options are working actually. this only happens with the metadata option on. … which, of course, was the reason I installed that plugin of yours so hopefully.
as I am absolutely novice to php (actually not even that, really), it would be nice to get hints, what could be done about it. as it seems connected to “language” somehow, it might have to do with the gengo-plugin, which I installed for multilingual blogging…?!
any advice most welcome! thanx already
I installed v2.2… no errors came up. Then, after selecting all available search options and entering my first search word… at the top (header), I got:
WordPress database error: [Column 'meta_value' in where clause is ambiguous]
SELECT DISTINCT * FROM wp_posts LEFT JOIN wp_postmeta AS postrestrictions_meta ON wp_posts.ID = postrestrictions_meta.post_id AND postrestrictions_meta.meta_key = ‘post_restrictions’ LEFT JOIN wp_comments ON ( comment_post_ID = ID AND comment_approved = ‘1′) LEFT JOIN wp_postmeta ON wp_posts.ID = wp_postmeta.post_id WHERE 1=1 AND (((post_title LIKE ‘«out%’) OR (post_content LIKE ‘«out%’)) OR (post_title LIKE ‘«out%’) OR (post_content LIKE ‘«out%’)) AND post_date_gmt
Standart way for a search in wp is not for me and my blog =)
i belive that it’s will be better
Hy,
nice Plugin ! When you change in line number 319 to
function SEv_add_options_panel() {
add_options_page(’Search Everything’, ‘Search Everything’, 1, __FILE__, ‘SEv_option_page’);
}
then is this plugin also for Wp 1.5* usable.
Do you like a german Version of your Plugin ? I translate, when you like it.
thx and best regards Frank
Hi Dan,
I’m thinking in extending the plugin to using other tables, any idea how to do that (I want to search in other tables even those created from plugins)
thanks for this plugins, saved me a lot of coding
The website link is a development site. It’s not permanent…. so if anyone looks at this months from now, it will most likely be gone.
Anyway. Love the plugin. Just one thing.
I have the search on my sidebar, not a separate page. At this point I dont’ know what it does it if it finds multiple results. Not a lot of data on the site. Irrelevant wandering from actual question…….
Anyway… If the search results in a page, the page is displayed, but it uses the post template not the page template, so I have the dreaded “posted in category uncategorized” at the bottom of the page. (when the page is accessed through normal navigation means it uses the page template, which does not have the posting meta data displayed)
Is there an easy way to specify which template to use to display a page as the result of a search??
I have a minimal working knowledge of php, but didn’t see any reference to templates when I skimmed through the plugin code
Thanks!!
Hi Dan,
Could you in the next version please fix this small error? Currently we see in the search_everything(.*).php the following:
function SE2_options_style()
#search_options tr.child_option {
margin-left: 15px;
margin-top; -3px;
}
The last line should be:
margin-top: -3px;
So replace the ; by a :
Thanks for the great plugin!
This is a great plugin but there is one thing that could to be added: restrict password protected pages from the search results. Maybe something like adding “AND post_password IS NULL” to the mysql where query? I don’t know the correct syntax to use to hack your plugin to get this to work though.
Nice plug-in - have downloaded, now just need to install it!
DO you know of any plug-ins which put a blurb about the page on the results page under the title of the page? Similar to Google display etc.
Cheers,
Dave.
For Wordpress MU the search on pages doesn’t work.
To solve this you need to update the SE2_search_pages function …
//search pages
function SE2_search_pages($where) {
global $wp_query;
if (!empty($wp_query->query_vars['s'])) {
$where = str_replace(” AND (post_type = ‘post’”, ” AND (post_type = ‘page’”, $where);
$where = str_replace(” AND (post_status = ‘publish’”, ” AND (post_status = ‘publish’ or post_status = ’static’”, $where);
}
SE2_log(”pages where: “.$where);
return $where;
}
Grtz,
Peter
Is there any way to enable the plugin to search on comment authors’ names? Thanks.
Thanks Alot Working fine.
regards,
http://www.firefoxdir.com
I have the same problem as Maria:
WordPress database error: [Column ‘meta_value' in where clause is ambiguous]
SELECT DISTINCT * FROM wp_posts LEFT JOIN wp_postmeta AS miniposts_meta ON (wp_posts.ID = miniposts_meta.post_id)LEFT JOIN wp_postmeta ON wp_posts.ID = wp_postmeta.post_id WHERE 1=1 AND (((post_title LIKE ‘%diario%’) OR (post_content LIKE ‘%diario%’)) OR (post_title LIKE ‘%diario%’) OR (post_content LIKE ‘%diario%’)) AND post_date_gmt
Hi everybody, I have succeded in correcting the error I had (Column ‘meta_value’ in where clause is ambiguous). Maybe someone will find it useful: in the plugin’s function SE2_search_metadata you simply should add wp_postmeta before .meta_value. So, at line 149:
$where .= ” OR wp_postmeta.meta_value [...]
Too Good To Be True…
Some metadata, as UTW Tags, are stored in a peculiar way: while no problem with single words, “usa” is stored as “usa”, phrases, eg. “united states of america”, are stored as “united-states-of-america”.
So if I search “united states of america” I don’t get the result and really I can’t hope my users to search “united-states-of-america” (by the way: if they even would do this they wouldn’t get an eventual “united states of america” from post contents).
I don’t think it’s hard to work it around, it’s a matter of converting spaces in minus signs in the query string in the single case of metadata search, but I’m a phpnewbie. Any ideas?
I’m having the same issue as Domiziano - if the Page is titled with a single word, the saerch pages thing works fine. However, if the Page title is multiple words, it links to the spaces rather than the Page slug. For example, I have a page titled “The Moon”. The wp_list_pages links to the slug, which reads “the-moon”. However, the search pages brings up “The Moon”.
Is there any way to force it to use the slug as the URL link rather than the page title? Thanks
nvhh
Great plugin. I’m wondering if it’s possible to somehow have it search through plugins that are installed on wordpress. I’ve got an image gallery installed as a plugin and nothing but nothing in wordpress will list results from the gallery. Thanks for any assistance.
Derek - it would be difficult to include all the possible ways that plugin authors could store content, it’s probably too big of a problem for any one search plugin to tackle. Even if they all stored their data in the standard WP tables (which many don’t) you’d also have the issue of how to format the URLs in the results to give you the right view of that data, which will probably be different for every plugin.
If you’re looking for a full site index, I’d suggest just directing your searches to Google, and limiting the results to only those found on your site. That’s what I do for my blog. They just started a new service where you can further customize (style, etc) this kind of thing to make it appear more integrated into your site.
The nice part about doing that is that Google will already index everything in your site for you, regardless of whether the content came from a post, a comment, or a plugin.
The only downside would be the delay in accurate results depending on how often Google crawls your blog and updates its indexes, but I don’t see any other way of truly getting everything, unless you wrote your own type of “spider” component that would maintain your own index of your site on a more frequent basis than Google does and then have a plugin go against that.
@JaredB, thanks for the info. I had a feeling Google would be required.
Well, I figured it out on my own. Turns out it was an utterly *stupid* mistake. When I edited the “Search Results” page, I had formed my links like so (replacing brackets with “.” ’cause I’m not sure if they’ll be parsed here - but try to imagine they’re there!):
.a href=”.?php the_title(); ?.”. Title here ./a.
The error was using “the_title();”. That’s why it was capitalizing and separating the title with spaces, instead of using the slug (i.e. linksing to “Title here” instead of “title-here”)
When I changed “the_title();” to “the_permalink();” it all fixed itself.
Hopefully that helps someone else (yes, I will admit to my stupidity, if it’ll help someone else!)
Hello Dan!
I am echoing comments from May 17, 2006
————————-
Hi Dan, i’m using your plugin on my site, it’s my first time with wordpress.
Is there any chance you could update the plugin so it includes results from the only faq plugin for wordpress i can find, you can see it over at rane.hasitsown.com/blog/plink/technical/33/wordpress-faq-plugin/.
If you could integrate that, it would be greatly appreciated
————————-
The FAQ Plugin by RANE is pretty hot and would be much more valuable if one could include it in the search. I looked at your code, but don’t have enough php/mysql knowlege to figure out how to make this work.
Can you please help?
Thanks,
Chris
Sorry, it would be impossible to support all of the cool plugins out there. If the plugin uses the meta field SE will work with it. As Jarad said the best thing to do is to use Google for the searching.
I might release a plugin that later uses google ajax since I’ve already coded it for another static site but don’t keep your hopes up for it to be released soon.
good luck.
Hi,
I just found your plugin and really like it but it doesn’t seem to be working with WP 2.0.6.
Are you aware of any problems with the new version of 2.0.6?
Thanks
Eric
Have the same problem with three of my sites. Hopefully Search Everything will work soon with 2.0.6.
Hello Dan,
i really love your plugin. Thanks a lot.
But I have the same problem now. WP Version is 2.0.6. The search doesn’t include the pages. Yes, I have ticked the checkbox in the options.
It would be very nice if there’s a way to fix this problem.
All the best
Tom
I’m going to look into the issue ASAP.
Hello Dan,
I found the problem in the new plugin version:
all str_replace functions use strings with double quotes (”), but only escaped single quotes (\’) are correct.
Example line 89:
“publish” must be written as \’publish\’, “static” as \’static\’
I made the changes and it works fine.
Download: http://www.fastagent.de/res/download/searcheverything25_pcl.zip
Happy New Year,
Peter
Thanks Peter, I’ll upload the new version to Google Code tonight.
Hello Dan,
the WordPress developers made changes in classes.php
They used to mix up ” and ‘ quotes before. Now they only use single quotes.
I added now the following line to your plugin:
$where = str_replace(’”‘, ‘\”, $where);
This ensures that only single quotes are used in $where.
Changes:
85, 102, 114: line added as described above
90, 103, 115, 116: line changed as described in my previous comment
Based upon what both Dan and Peter said above the plugin should now be working under 2.0.6, but it still doesn’t seem to be working for me. I know that the options are correctly set and everything, but pages still aren’t searched.
-Ian
Hi Ian,
the plugin works fine now. Searchs Pages and everything.
I think the problem is on your site now.
Check again if the desired checkboxes are ticked.
For some reason you have to do it twice until it remains ticked.
Cheers
Tom
Before I use WordPress search posts and pages hack, but I may patch code for this. Plugin is better in use.
Thanks again!
Awesome plugin, thanks a lot.
Thnx for the plugin! Same situation like Tom has, had to tick the options for a second time when installing, which was the only thing I encountered so far (running WP 2.0.7).
Great job with the plugin. Everything seems to work great, but I was wondering if there is a way to make the search results non case sensitive? Thanks.
One more question. When a search term is found from a comment the results display the post that the comment was made on, but not the comment itself. The user would then have to click on comments in order to actually find the searched for term. Any ideas on how to fix this problem?
Hi,
I’m testing this plugin with WP2.1 and it’s not working with static pages (yes, I enable it in the plugin’s options)
Any idea ?
Thanks !
Don’t work, no results… This is my searchform.php:
/”>
” name=”s” id=”s” />
Hi,
now it works. At the first time, the plugin don’t enable my selected options. Thank You!
Testing with WP 2.1 and it aint happening for me. Plugin options don’t seem to stick, and no search results from anything except posts.
When I search, I’m getting multiple results from the same item. If I deactivate the plugin, the issue stops…any ideas?