WPBakery Page Builder

The Search & Filter – WPBakery Page Builder Extension allows for seamless integration between WPBakery Page Builder and Search & Filter.

With this extension, Search & Filter can directly integrate and filter the following WPBakery elements:

  • Post Grid
  • Post Masonry Grid
  • Media Grid
  • Masonry Media Grid
  • Woo Products (WooCommerce)

It also adds a Search & Filter Field element, so you can place your fields anywhere in your layout.

Install + Activate the Extension

Ensure you have WPBakery Page Builder enabled.

Head to WP-admin -> Search & Filter -> Integrations and enable the WPBakery Page Builder integration. This will automatically download and enable our WPBakery extension in the background.

Search & Filter Integrations screen with the WPBakery Page Builder integration enabled

Manual Installation

Alternatively, you can download the extension plugin and install it on your WordPress website via the extension page in your account.

  1. Ensure you have the WPBakery Page Builder plugin enabled.
  2. Upload the extension plugin and activate it.

Supported Versions

Our extension plugin works with both Search & Filter v2 and v3. Using it with Search & Filter v3 requires:

  • Search & Filter and Search & Filter Pro 3.3.0 or newer
  • WPBakery Page Builder 9.0.1 or newer
  • WordPress 6.8 or newer and PHP 7.2 or newer

Create a Query

Head to Queries in the main navigation, then press Add New to create a new query.

Ensure that location is set to Dynamic and then choose WPBakery Element from the query dropdown:

Query editor with Location set to Dynamic and Query set to WPBakery

Select the Query tab and set the Post Type to match the element you’ll connect it to – for example Posts for a Post Grid, Media for a Media Grid, or Products for Woo Products.

Give your query a name, hit save and your query is good to go.

Create a Field

After saving your query, you’ll find your connected fields in the Fields tab. There won’t be any initially – press Add New to create one.

Search & Filter Query Editor. Empty Fields tab of a saved query with the Add New button.

From here you can create as many fields as you need and connect them to the same query.

Field editor with the query integration option set to the WPBakery query

When creating fields for queries, ensure the query integration option is set to the correct query.

Read more about fields here

Adding Fields to Your Site

Once you’ve created some fields, you can add them to your WPBakery page using the Search & Filter Field element, found under the Content tab of the Add Element panel.

WPBakery Add Element panel showing the Search & Filter Field element

Once you’ve added the element to your page you can choose the field you created earlier from the Field dropdown:

Search & Filter Field element settings with a field selected in the Field dropdown

Filtering Post Grids

To connect a Post Grid or Post Masonry Grid to your query:

  1. Open the element’s settings and go to the General tab.
  2. Set Data source to Search & Filter Query.
  3. Choose your query from the Search & Filter Query dropdown.
WPBakery Post Grid Element settings with Data source set to Search & Filter Query and a query selected

Once connected, your Search & Filter query controls which posts are shown, so WPBakery’s Narrow data source, Item limit, Display style and Show filter options are hidden. Use the query settings to control the post type, results per page and pagination instead.

That’s it – Live Search is supported automatically.

Filtering Media Grids & Woo Products

The Media Grid, Masonry Media Grid and Woo Products elements have a Use Search & Filter option. Set it to Yes, then choose your query from the Search & Filter Query dropdown.

WPBakery Media Grid element settings with Use Search & Filter set to Yes and a query selected
WPBakery Woo Products element settings with Use Search & Filter set to Yes and a query selected

As with post grids, the options your query now controls are hidden – Images, Style and sorting for media grids, and Products, Per page and sorting for Woo Products.

Make sure the query’s post type matches the element: Media for media grids and Products for Woo Products.

Pagination & Load More

Pagination is set in your Search & Filter query, under Results -> Pagination Type (requires Live Search to be enabled):

  • Default – numbered pagination is added below your grid automatically.
  • Load more – add a Load More button using a Control -> Load More field, placed with the Search & Filter Field element.
Search & Filter Query Results settings with Live Search enabled and the Pagination Type dropdown
WPBakery Woo products element on the frontend with filtered products and pagination below the results

Both work with all supported grid elements and update via ajax with Live Search.

Archives

WPBakery Page Builder doesn’t have archive templates, so archive queries aren’t supported by this integration. Build your filterable listing on a regular page with the query Location set to Dynamic.