[wp-hackers] any suggestions before creating search module? :)
Paul
paul at codehooligans.com
Wed May 11 19:48:15 UTC 2011
While the solution suggested by Chris will work I don't like to see people get into direct SQL queries for something so trivial. Look into the WP_Query object. It now has extensive compare options for custom fields
http://codex.wordpress.org/Function_Reference/WP_Query#Custom_Field_Parameters
P-
On May 11, 2011, at 9:55 AM, Christopher Ross wrote:
> Konrad, I suspect http://css-tricks.com/snippets/wordpress/custom-loop-based-on-custom-fields/ will do what you're looking for. Chris
>
>
> On 2011-05-11, at 7:43 AM, Konrad Karpieszuk wrote:
>
>> hi there
>>
>> I am preparing to create some kind of search engine for one post type
>> (called 'appartments') which will query those posts counting tens of
>> custom fields associated with post. every post has CF like
>> '_animalls_allowed' , '_seasight_location' with values 'yes', 'no' or
>> 'maybe'
>>
>> i know that here are plenty of wordpress specialist so could you give
>> me some suggestions? i have some idea in my head but what do you
>> suggest to read? how to hook this into standard wordpress search query
>> (now i am thinking about creating my own search form which will use
>> own search mechanism [but also on query posts]). maybe you know some
>> articles which can be helpfull for me? or maybe some plugin which
>> already exists?
>>
>> thank you in advance for any suggestions!
>>
>> --
>> (en) regards / (pl) pozdrawiam
>> Konrad Karpieszuk
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
>
>
> __
>
> Christopher Ross
> Online Portfolio - http://christopherross.ca
> Personal Blog - http://thisismyurl.com
>
> Fredericton - 506.238.4661
> San Diego - 858.201.4912
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
More information about the wp-hackers
mailing list