List Search
Updated 3 weeks ago
The List Search element allows to search items within "list" elements on the same page. It triggers the first found Post List (or Product List) element in the content area of the page (not in a header or footer). It allows to use a live search, so relevant posts are found while you type in the search field.
List Search does not work with Grid, Term List, and User List elements.
Example with multiple post types
Example with portfolio
Example with products
List Search uses the default WordPress search logic, that allows to search posts only by:
- Post Title
- Post Content
- Post Excerpt
Change URL Parameters #
By default, the List Search changes the URL in a browser address bar. You can disable that behavior via the Change URL Params switch.
Entering any value into a search field adds the _s
parameter to the URL, for example:
http://example.com/my-list/?_s=ninja+hoodie
It allows the creation of external links that lead to the list with the search query applied.
If you want the Post List / Product List will take into account URL params after page reloading, you need to enable the "Use URL params to show results" option in their settings.