Search Meta (Custom Fields) Hack 0.1

In response to a request, I made a WordPress 1.5 hack called Search Meta that causes searches to consider the custom fields’ values when executing. It’s basically the same as a Mingus hack provided on the old wiki, but updated for Strayhorn.

I would have made this as a plugin, but unfortunately I couldn’t find filters that would work to modify the queries appropriately.

Note that this is compatible with my Search Pages plugin, if you happen to be using it.

2 Responses to “Search Meta (Custom Fields) Hack 0.1”

  1. nikki Says:

    Many thanks both for this hack and for your thouroughness:

    I installed it once the simple way; later upgraded to WP 1.5.1; and was then able to apply the hack manually.

    Context is good - hurrah for context!

  2. Ian Says:

    This appears broken for me using WP 1.5.2, I added the fixes manually (by the way you have an error in your manual syntax (not escaping ‘), but it simply causes WP to hang on the search. I have manual fields and also use Jeromes keyword plugin:

    http://vapourtrails.ca/wp-keywords

    Any idea’s on what the problem may be? Thanks.

Leave a Reply

You must be logged in to post a comment.