[wp-hackers] Search / Filter custom meta values from frontend
mikeschinkel at newclarity.net
Tue May 18 18:33:51 UTC 2010
I'm building similar search functionality for a client right now. It's not straightforward but it's doable using hooks. You'll need to hook the "posts_" hooks. This page should give you some help:
On May 18, 2010, at 2:15 PM, Joaquin Rodriguez Montero wrote:
> Hi guys,
> I tried searching different alternatives to my question, but I had no luck*.
> I'm trying to get a search result based on custom fields meta data, say:
> Price: $100 - $400
> Location: Buenos Aires
> Type: All
> These options should be on the frontend and their values can be specific
> ones or not defined (meaning, "all"). Is there any way to achieve this?
> Result should be, as *expected*, all pages or posts (in this case pages)
> with those values. I wouldn't mind defining the parent page ID where every
> page (which I want to filter) is.
> My page tree is:
> Group Page
> -Group page 1 + custom fields
> -Group page n + custom fields
> Contact Us
> *I found Scribu's plugin:
> http://wordpress.org/extend/plugins/custom-field-taxonomies/ which looks
> amazing but can't figure out how to implement it the way I'd like it to
> Thanks a mil if you can give me a clue on this one!
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers