![]() ![]() This part is only useful if you enter all the code with your bare hands. The Switch to advanced mode link: we won’t talk about it here.The Query tab: enables you to define the query that our template will use to display the different elements: by date, by name, etc.The Layout column: enables us to define how these elements will be displayed: the number of items per line, the distance between them and a single CSS class.The Display tab: enables us to visually set up an element of our grid by selecting the different fields to be displayed.A short code will then be automatically generated from it. So we go to the Templates tab of FacetWP and this is what we are offered:įirst, let’s give our template a name: Blog Posts. We now need to set up our page template displaying the types of content to be filtered. In our case, we will create one facet for our categories, and another to filter by Author.įor Categories, I choose to display checkboxes, and for Authors a dropdown field with the list of the different authors who have published on the website.ĭon’t hesitate to modify the options to refine your facets: many possibilities are available and simple to set up. Soft Limit: to display a “See more” button in our facet if many elements are returned.Count: to set the maximum number of elements of our facet displayed.Sort By: to define the display order of the elements of our facet (by number, by name, etc).Behavior: to define whether the selection widens or narrows the displayed results.Show Ghosts: to show or hide items that don’t return any results.Value Modifiers: to include or exclude some values from your filters, for example to exclude a product, a category or a post.It is possible to select all the values defining your content types: posts publication date, WooCommerce price fields, categories, labels, custom fields, etc. Data Source: the sorting criterion on which the facet will act.Star rating: filtering by number of stars.However, it requires the use of a custom field containing the longitude and latitude previously filled in ![]() Proximity: a facet that allows you to search for results around a specific location.Number range: an interval to be chosen by entering two numbers.Date range: a range of dates to be defined.Slider: an interval selector that allows you to define a number interval to sort your content (price, etc…).Autocomplete: a search bar suggesting terms when you start typing your keyword.Hierarchy: a field that allows you to prioritize your facet by number of results.fSelect: a dropdown field allowing you to select several options.Facet type: this field defines the type of facets you create.Note the red Copy shortcode button next to it, which will then allow us to insert our facet where we want it on the website. Don’t hesitate to put a precise title to find it more easily afterwards. Label: this will be the name of your facet.Let’s see FacetWP’s usefulness of each of these fields: Once you have clicked on Add New, you arrive in the interface to set up our facet: We arrive directly in the tab concerning the available facets.Ī filter by category is created beforehand to start sorting your content. The parameters are available in the administration in the Settings tab > FacetWP. Because we like to pamper our users.Īfter downloading and installing FacetWP, let’s go to the settings to find out what it offers. We have a WordPress blog, but to make our visitors’ lives easier, we’re going to add different filters so that they can find what they’re looking for quickly and easily. How to set up a blog post filter system with FacetWP It is available from $99/year for up to 3 sites, and $249/year for 20 sites and the possibility to filter users. These facets can be of different types (we’ll see it right after) and allow the user to finely sort what he is looking for according to the available criteria.Īnd of course, all this without reloading the page, for a better user experience and speed.įacetWP is a premium plugin, which does not have a free version. Few competitors, a plugin that is easy to learn and implement on WordPress: everything is done to make our life easier.Īs its name suggests, FacetWP allows you to create custom facets to filter any content available on your WordPress website: blog posts, WooCommerce products, custom content types, etc.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |