Answer the question
In order to leave comments, you need to log in
Wordpress and custom field search?
Has anyone implemented search by custom fields in wordpress?
You need more than just a search that searches in arbitrary fields like "Search Everything".
You need a search with checkboxes, the ability to specify a price range and select a couple of parameters from the drop-down lists.
How to implement this? Are there ready-made solutions?
Answer the question
In order to leave comments, you need to log in
You can use the WP_Query class: codex.wordpress.org/Class_Reference/WP_Query
On hot-tur.com.ua/ I made the block “Tour selection” on the right. There was a slightly similar task. Search by multiple parameters. I have not seen ready-made solutions that work as I need.
you can still hook posts_join and add your own to the main sql query :)
the other day I started using this plugin: wordpress.org/extend/plugins/types/ it is like cc in Drupal and Joomla. There is a custom field search module but it costs a little money
There are some developments on this topic www.onwordpress.ru/search-custom-fields-wordpress.html
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question