WP Custom Fields Search

Description

You can configure a number of inputs of different types, to search different fields of your posts in different ways. These will then be presented to your users as a simple form interface allowing them to find the content they need.

Installation

  1. Unzip wp-custom-fields-search.zip to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Either add a sidebar widget or include one of the presets via short_code or php code

Add a sidebar widget

  1. Navigate to the widgets page in your wordpress admin area ( Appearance > Widgets )
  2. In the available widgets list you should see “WPCFS Custom Search Form”, drag this into the appropriate sidebar.
  3. click save on the new widget.
  4. Navigate to the front-end of your site

You should now see a very basic search form in that sidebar. You can expand on this using the instructions below under configuring your form

Include a preset

  1. Navigate the WP Custom Fields Search section in the menu
  2. Either copy the shortcode text into a post / page
  3. Or copy the php code into your template
  4. Navigate to the front-end of your site

You should now see a very basic search form in that sidebar. You can expand on this using the instructions below under configuring your form

Configuring your form

Each form consists of a list of fields. Clicking the “New Field” button will add new fields to the list. Clicking the delete button (labelled X) next to a field will remove it again.

Fields can be re-ordered by drag and drop.

Clicking the edit button (spanner icon) on a field will open up the field edit form, allowing you to configure how that field appears and how it searches the data.

There are three main sections to the field edit form. Data-type selection which configures which post fields this input will search (e.g. post title or category). Data-comparison selection which configures how the users search data is compared to the post data to look for matches (e.g. match exactly or match if the word appears in the text). And the input, which controls how the field appears in the search form and how the user can enter their search query (e.g. a text input or a drop-down element)

There are a core set of datatypes, comparisons and inputs which can be expanded on with extension plugins.

FAQ

Installation Instructions
  1. Unzip wp-custom-fields-search.zip to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Either add a sidebar widget or include one of the presets via short_code or php code

Add a sidebar widget

  1. Navigate to the widgets page in your wordpress admin area ( Appearance > Widgets )
  2. In the available widgets list you should see “WPCFS Custom Search Form”, drag this into the appropriate sidebar.
  3. click save on the new widget.
  4. Navigate to the front-end of your site

You should now see a very basic search form in that sidebar. You can expand on this using the instructions below under configuring your form

Include a preset

  1. Navigate the WP Custom Fields Search section in the menu
  2. Either copy the shortcode text into a post / page
  3. Or copy the php code into your template
  4. Navigate to the front-end of your site

You should now see a very basic search form in that sidebar. You can expand on this using the instructions below under configuring your form

Configuring your form

Each form consists of a list of fields. Clicking the “New Field” button will add new fields to the list. Clicking the delete button (labelled X) next to a field will remove it again.

Fields can be re-ordered by drag and drop.

Clicking the edit button (spanner icon) on a field will open up the field edit form, allowing you to configure how that field appears and how it searches the data.

There are three main sections to the field edit form. Data-type selection which configures which post fields this input will search (e.g. post title or category). Data-comparison selection which configures how the users search data is compared to the post data to look for matches (e.g. match exactly or match if the word appears in the text). And the input, which controls how the field appears in the search form and how the user can enter their search query (e.g. a text input or a drop-down element)

There are a core set of datatypes, comparisons and inputs which can be expanded on with extension plugins.

Reviews

Great! Does just what I wanted

I’m really pleased with this. I was unsure how I would set up a search facility using form fields but this did exactly what I was looking for and works a treat!

does not work with wp 4.3

the link to author page is gone,
the plugin doesn’t work with WP 4.3.1 and it returns many php warnings and notices.
I recommend: do not use it furthermore.

Read all 15 reviews

Contributors & Developers

“WP Custom Fields Search” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.0

  • This is a major rebuild from 0.3.28, the rebuild should allow for easier extension and configuration
  • If you are using bespoke or customised versions based on the 0.3 plugin those customisations will almost certainly not be compatible with this upgrade.

0.3.28

  • Stable legacy version