List Search
Updated 1 week ago
The List Search element allows to search items within "list" elements on the same page. The element is available within Live Builder and WPBakery builders.
Currently, the List Search works only with Post List and Product 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.
