I
I
Ivan Prilepsky2012-10-06 11:36:58
WordPress
Ivan Prilepsky, 2012-10-06 11:36:58

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

5 answer(s)
I
Igor, 2012-10-06
@igoravr

You can use the WP_Query class: codex.wordpress.org/Class_Reference/WP_Query

A
Alex Pts, 2012-10-06
@AlexPTS

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.

A
Alexander Rudevich, 2012-10-07
@rudevich

you can still hook posts_join and add your own to the main sql query :)

T
Timur Tuz, 2012-10-29
@TTA

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

D
Dmitry Vermutov, 2014-06-14
@Vermutoff

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 question

Ask a Question

731 491 924 answers to any question