How can I tell the default WordPress search function to also look at the postmeta data?
For example, I have a postameta key called ‘item_number’ and if someone searches ‘113’, I’d like for it to check the key’s value as well as the post content.
Thanks!
This site provided the answer I was looking for:
http://flav36rs.com/2010/03/15/extend-wordpress-search-to-include-custom-post-meta/
There are some helpful comments below the tutorial worth looking at if you run into problems.
EDIT:
The above link is dead.
Ultimately, I ended up writing a complete custom search query using JOINS to build the query I needed.