Both free and premium can search for custom fields – the functionality is exactly the same in both version. If ClassiPress is doing something unusual to prevent the free version of Relevanssi from searching the custom fields, premium won’t work either.
So, if the custom fields ClassiPress is using are typical WP custom fields, stored in wp_postmeta, both versions of Relevanssi can index them. If they are something else, neither version can.
HI,
If I have search by county in my particular category page.
example:http://www.cosmediclist.com/dev2/?s=What+are+you+looking+for%3F&scat=10&cp_city_zipcode=&distance=50++miles&cp_country%5B%5D=United+Kingdom&sa=Go&refine_search=yes
Relevanssi search show all result under scat=10 doesn’t check cp_city_zipcode,cp_country and distance.
These all three fields are classipress custom fields.
Please help how I apply custom field to search plugin.
if you click on http://www.cosmediclist.com/dev2/ad-category/workshops-and-conferences/
and search by any country under refine search box .Result show all records. Didn’t apply search criteria to search query.
Well, Relevanssi doesn’t understand cp_city_zipcode, cp_country, distance or anything else you throw in the URL, unless you tell it to. So, you need to write some code that reads those additional query variables and formats them as a meta_query that Relevanssi understands.
Depending on how ClassiPress handles the data, that may be fairly easy or hideously complicated. Distance from a zip code can be pretty hard to do.
Ok thanks for help. We decided to buy relevanssi premium plugin then we can add additional filter variable in search query.
Please note that these forums do not support commercial products. Only the free plugins downloaded from http://wordpress.org/plugins/. Please contact the plugin’s vendor directly with any comments, or questions, about commercial products.