→ Add Facets to the WP Search Page

Facets can be added to the default search page. Starting in version 1.7.0, we simply need to add a CSS class to search.php to tell FacetWP which listing to use.

1. Add the CSS class “facetwp-template” to the container element surrounding your WordPress Loop

The following uses the TwentyFourteen theme as an example, but a similar approach could be used for any theme.

facets-on-search-page

2. Add facets

Simply add some facets to the search page. The easiest way would be to add facet shortcodes into Text widgets (Appearance > Widgets).