Lifetime prices rise on 19 October →
Phox Elements
SEARCH Dropdown search bars for Breakdance

A dropdown search bar that sends visitors to filtered results

Search Bar is a row of dropdowns with a search button, like the ones you see on hotel, property and shop home pages. Visitors pick their options, press the button and land on a results page that is already filtered. Options can come from a taxonomy, a custom field or a list you type in.

Taxonomy, custom field or manual options Works with Phox Facets Stacks on mobile
Live demos

Pick an option and press the button

Each bar below is live. Choose an option and search to see the filtered results page on this site.

Default style, taxonomy source

Find the right food for your pet

One dropdown built from the Product categories taxonomy. Empty categories are hidden.
Light style, manual options

Shop by pet

Manual options with friendly labels (Dogs, Cats, Fish) that map to category slugs.
Pill style, icon-only button

Browse the blog

Post categories ordered by post count, with the button text left empty so only the icon shows.
How it works

Three steps to a filtered search

Build the bar on your home page, then let your results page do the rest.

1

Add the dropdowns

Drop Search Bar onto your page and add a dropdown for each filter. Choose a taxonomy, a custom field or type your own options.

2

Set the results page

Leave Results Page URL empty to use the WordPress search results page, or enter the URL of a page with a post loop or product grid.

3

Style it

Set the bar, dropdown and button colours, padding and corners, and choose the width below which it stacks on mobile.

Features

What you can control

A simple bar on the front end, with flexible sources behind it.

Taxonomy dropdowns

List the terms of any taxonomy, such as categories, product categories or a custom taxonomy, with child terms indented under their parents.

Custom field dropdowns

List every distinct value saved in a custom field, for example a location or property type field.

Manual options

Type your own labels and values, so the dropdown can say Dogs while the URL uses dog-food.

Several dropdowns

Add as many dropdowns as you need. Each one adds its own filter to the results URL.

Ordering and parent terms

Sort terms by name or count, ascending or descending, hide empty terms, or show only the children of one parent term.

Phox Facets URL format

Selections are sent as _pf_ URL parameters, the same format Phox Facets uses, so filters on the results page pick them up.

Any results page

Send visitors to the standard search results page or to any page you choose.

Remembers the selection

When the results page also contains the bar, the dropdowns show the options the visitor picked.

Stacks on mobile

The bar stacks vertically on small screens. Set your own breakpoint for when it stacks.

Use cases

Where it works best

Anywhere visitors want to narrow down a list before they start browsing.

01

Property sites

Location, property type and bedrooms, like the search on an estate agent home page.

02

Hotels and holiday lets

Let guests choose a destination and a type of stay.

03

Online shops

Send shoppers straight to a filtered category from the home page.

04

Directories

Filter listings by area and service before showing results.

05

Care and service finders

Help visitors choose a care type, location or service level.

06

Blogs and resource libraries

Jump to articles on a chosen topic.

Settings reference

Every control, explained

This is the full list of settings in the Breakdance editor, with their default values.

ControlWhat it doesDefault
Filters (one row per dropdown)
Facet NameInternal name for the dropdown. Used in the URL for manual options.category
PlaceholderThe first option, shown when nothing is selected.Care Type
Data SourceTaxonomy, Custom Field or Manual Options.Taxonomy
TaxonomyWhich taxonomy to list terms from.category
Meta KeyThe custom field to read values from (Custom Field source).—
OptionsLabel and value pairs (Manual Options source).—
Hide Empty TermsLeave out terms with no posts (Taxonomy source).Off
Parent Term (optional)Only list the children of this term slug (Taxonomy source).—
Order ByName or Count (Taxonomy source).Name
OrderAscending or Descending.Ascending
URL ParameterOverride the parameter name used in the results URL.—
Button
Button TextText on the search button. Leave empty for an icon-only button.Search
Show Search IconShow a magnifying glass icon on the button.On
Results Page URLPage to send visitors to. Empty uses the WordPress search results page.—
Design
BarBackground, padding, gap, borders and border radius of the bar.Dark slate, 6px, 8px radius
LayoutWidth, max width and alignment. Responsive.—
DropdownsMin width, height, padding, background, border colour, width and radius, typography, arrow colour, and the open list background and text colour.—
ButtonBackground, hover background, text colour, padding, border radius, min width and typography.Gold #c8a254
MobileStack Below (px): the screen width at which the bar stacks vertically.768px (built in)
SpacingTop and bottom margin.—
Tips & FAQ

Good to know

Is there a text box for keywords?

No. Search Bar is built from dropdowns only, so visitors choose from options you control. Use it alongside a normal search form if you also need keyword search.

What happens when the visitor presses search?

The form sends the selected options to the results page as URL parameters starting with _pf_, for example ?_pf_product_cat=dog-food. The query on the results page is filtered to match.

Do I need Phox Facets on the results page?

Not for the standard search results page. Taxonomy and custom field dropdowns register their filters so it can read them, as the demos above show. On a custom results page, use a post loop that Phox Facets can filter and it picks up the same _pf_ parameters.

Can I send visitors to a custom results page?

Yes. Enter its URL in Results Page URL. Leave it empty to use the standard WordPress search results page.

How do manual options work?

Each option has a label and a value. The label is what visitors see and the value is sent in the URL. The URL parameter comes from the Facet Name, or from URL Parameter if you set one. To filter by a taxonomy, use its slug as the name (for example product_cat) and term slugs as the values, as in the Shop by pet demo.

Add Search Bar to your next page

Search Bar is included with Phox Elements, along with 150+ other premium elements for Breakdance.