How to create facets
Once the Posterno search forms extension has been installed and activated, a "Search forms" menu will appear under the "Listings" menu of your WordPress admin panel.
Add new facet
To add a new facet, click on the "Add new facet" button. You'll then be taken to a new page where you can configure your new facet.
Once you've selected the type of facet you wish to create, additional settings will appear within the "Configuration" metabox. Each facet type has different settings.
The data source option
The data source setting is what tells the facet where to grab the data from. Posterno provides 4 groups of sources: listing data, metadata, taxonomies and custom fields.
- Listing data: the listing data group allows the facet to grab data from the title, published data, last modified date and listing author.
- Metadata: the metadata group allows the facet to grab data from private data that is stored in the background by Posterno. This currently only provides access to the listing's coordinates.
- Taxonomies: this group allows you to create facets capable of filtering by using all the taxonomies registered for the listings post type. The default taxonomies are type, category, location and tags. Developers can register custom taxonomies and they'll be automatically available for filtering through the form.
- Custom fields: the majority of listings custom fields that you create through Posterno can be searched through facets.
After your create, delete or change certain settings of some facet types, you'll be required to update the database index. When needed, you'll see a message at the top of the screen notifying you.
Navigate to the "Indexer" tab and then press the "re-index" button.