Close Menu
Developers ZoneDevelopers Zone
  • WordPress Themes
  • WordPress Plugins
  • Woocommerce plugin
  • Shopify Theme
Latest Contents

InBio Personal Portfolio Resume Theme

June 4, 2025

Oshine Multipurpose Creative WordPress Theme

June 2, 2025

happy addons pro free download

June 1, 2025
Facebook X (Twitter) YouTube LinkedIn
Facebook X (Twitter) YouTube LinkedIn
Developers ZoneDevelopers Zone
  • WordPress Themes

    InBio Personal Portfolio Resume Theme

    June 4, 2025

    Oshine Multipurpose Creative WordPress Theme

    June 2, 2025

    happy addons pro free download

    June 1, 2025

    Soledad Blog Magazine WordPress Theme free download

    May 29, 2025

    ListingPro WordPress Directory Theme Free Download

    May 25, 2025
  • WordPress Plugins

    InBio Personal Portfolio Resume Theme

    June 4, 2025

    Oshine Multipurpose Creative WordPress Theme

    June 2, 2025

    happy addons pro free download

    June 1, 2025

    Soledad Blog Magazine WordPress Theme free download

    May 29, 2025

    ListingPro WordPress Directory Theme Free Download

    May 25, 2025
  • Woocommerce plugin

    InBio Personal Portfolio Resume Theme

    June 4, 2025

    Oshine Multipurpose Creative WordPress Theme

    June 2, 2025

    happy addons pro free download

    June 1, 2025

    Soledad Blog Magazine WordPress Theme free download

    May 29, 2025

    ListingPro WordPress Directory Theme Free Download

    May 25, 2025
  • Shopify Theme

    InBio Personal Portfolio Resume Theme

    June 4, 2025

    Oshine Multipurpose Creative WordPress Theme

    June 2, 2025

    happy addons pro free download

    June 1, 2025

    Soledad Blog Magazine WordPress Theme free download

    May 29, 2025

    ListingPro WordPress Directory Theme Free Download

    May 25, 2025
Developers ZoneDevelopers Zone
Home»WordPress Plugins»FacetWP Elementor Integration
WordPress Plugins

FacetWP Elementor Integration

developerszone.netBy developerszone.netJanuary 19, 2025Updated:January 20, 2025No Comments10 Mins Read
Share
Facebook Twitter LinkedIn Pinterest Email

FacetWP Elementor Integration

  his add-on lets you display facets alongside a range of Elementor listing widgets. These widgets are available when using Elementor Pro, or one of the mentioned Elementor plugins. With this add-on installed, FacetWP also adds three widgets of its own, for adding facets, Listing Builder listings, and FacetWP-related buttons. These widgets also work with the free version of Elementor.

Warning:In version 3.22, Elementor introduced a new Element Caching feature. Element Caching is incompatible with FacetWP. If your facets are not showing (or disappearing after use), or if you see a “FacetWP was unable to auto-detect the post listing” error, make sure to disable Element Caching globally or in every FacetWP-related widget.

FacetWP Elementor Integration

Supported widgets

The following widgets are supported and can be used to create FacetWP compatible listings:

Plugin Widget name
Elementor Pro Loop Grid Posts Archive Posts Products (with WooCommerce) Archive Products (with WooCommerce)
Ultimate Addons for Elementor Posts Woo – Products (with WooCommerce)
Premium Addons for Elementor Blog Woo – Products (with WooCommerce)
PowerPack for Elementor Advanced Posts Woo – Products (with WooCommerce)
JetEngine Listing Grid
AnyWhere Elementor Pro Post Blocks Post Blocks AdvFacetWP does not support AEP directly. The integration is built into AEP.Note: to disable the scroll on page load, see the instructions below.

FacetWP adds the following widgets:

Plugin Widget name
FacetWP FacetWP Facet FacetWP Listing FacetWP Button

Usage

How to enable FacetWP in a supported Elementor listing widget.
How to enable FacetWP in a supported Elementor listing widget.

After installation and activation, there is no further configuration needed for this add-on plugin. When it is active, supported Elementor listing widgets will display an extra “Enable FacetWP” setting. If this setting is enabled, FacetWP will use this listing as the one to dynamically filter with facets. The Archive Posts and WooCommerce Archive Products widgets are meant to be used on WP archive pages. Other widgets, like the Posts widget or the Query Loop widget, can be used both on normal pages and on WP archive templates (if you set the Query Source setting to use the “Current Query”).

Important:Make sure there is only one FacetWP-enabled listing widget on a page.

FacetWP’s own built-in widgets can be used to add facets, listings and FacetWP-related buttons:

FacetWP Elementor widgets

Built-in FacetWP Elementor widgets.
Built-in FacetWP Elementor widgets.

Since v1.8, the FacetWP Elementor add-on comes with three built-in Elementor widgets:

  1. FacetWP Facet – adds a facet.
  2. FacetWP Listing – adds a Listing Builder listing.
  3. FacetWP Button – adds an Apply button, a Flyout button or a Submit button.

The FacetWP Facet widget

The FacetWP Elementor Facet widget settings.
The FacetWP Elementor Facet widget settings.

With a “FacetWP Facet” widget you can add an existing facet to your Elementor page. The widget is a convenient alternative to adding facet shortcodes in a “Shortcode” or “HTML” widget. After adding the widget to your page, use the “Facet” setting dropdown to select one of your existing facets. The dropdown will show all previously created facets, including the User Selections facet (which does not appear in the back-end facet overview). Optionally, add a facet heading by entering a text in the “Header” field and selecting the HTML tag to use for it. If you want to hide empty facets, including their heading, you can use this code snippet.

The FacetWP Elementor Facet widget editor placeholder.
The FacetWP Elementor Facet widget editor placeholder.

Note that facets will not display in the Elementor editor: a placeholder is shown instead. Check your front-end page to see if your facets are functioning correctly. If they are not appearing, make sure you also have added a listing to the page. This can be a supported Elementor widget, a Listing Builder listing (added with a Listing widget), or any other supported listing template type.

FacetWP Elementor Integration

The FacetWP Listing widget

The FacetWP Elementor Listing widget settings.
The FacetWP Elementor Listing widget settings.

With a “FacetWP Listing” widget you can add an existing Listing Builder listing template to your Elementor page. It is a convenient alternative to adding listing shortcodes in a “Shortcode” or “HTML” widget. After adding the widget to your page, use the “Listing” setting dropdown to select one of your previously created Listing Builder listings. Unlike the Facet widget, the Listing widget will show your listing, including its full layout, in the Elementor editor.

Important:There should be only one FacetWP listing widget on a page. FacetWP does not support multiple Listing Builder listings on a page. Even though they will appear to work in the Elementor edit screen, they will not work in the front-end. If you want multiple listings, the only way is to add them as non-filterable “static” listings. You can have multiple static listings on a page, but only one filterable non-static listing. Static listings can be added with a Shortcode widget.

The FacetWP Button widget

The FacetWP Elementor Button widget settings.
The FacetWP Elementor Button widget settings.

With a “FacetWP Button” widget you can add three types of buttons to your Elementor page:

  1. An Apply button – disables auto-refresh and applies facet selections on button click.
  2. A Flyout button – opens the Mobile Flyout panel.
  3. A Submit button – redirects facet selections to a separate results page.

Use the “Choose Type” setting to select the desired button type. Then change the button text and styling settings as needed.

Add an “Apply” button

When you add an “Apply” button to your page, it will disable FacetWP’s auto-refresh function and apply facet selections only when the button is clicked. Adding this button type does exactly the same as explained in our tutorial on how to disable facet auto-refresh and add a submit button. It will also automatically add the mentioned JavaScript snippet that disables auto-refresh to your page. As described in this tutorial, this button will disable auto-refresh for all facet types, except for Pager facets and Reset facets. If needed you can re-enable auto-refresh for individual facets or facet types with FWP.refresh(), for example when using a Sort facet.

Add a “Flyout” button

When you add a “Flyout” button to your page, and you have the Mobile Flyout add-on installed, the button will open the Flyout panel, as described here.

Add a “Submit” button

The FacetWP Elementor Button widget Listing Page redirect setting.
The FacetWP Elementor Button widget Listing Page redirect setting.

When you add a “Submit” button to your page, and you have the Submit Button add-on installed, the button will redirect to the page specified in the “Listing Page” field. When facets have selections, they will be included in the redirect. The Submit button widget is a convenient alternative to adding the Submit button manually or with a shortcode.

Add FacetWP shortcodes with a Shortcode widget

How to use an Elementor Shortcode widget to add facets or listings.
How to use an Elementor Shortcode widget to add facets or listings.

Instead of using FacetWP wigets, shortcodes for facets, listing templates and other features can also be added with an Elementor Shortcode widget. Just copy the shortcode from the FacetWP overview page or facet/listing settings page, and paste them into the widget. As an alternative to a Shortcode widget, you can also use an HTML widget.

FacetWP on WP archive templates

Elementor archive widgets.
Elementor archive widgets.

FacetWP can also be enabled on WP archive templates created with the Elementor Theme builder. The Archive posts widget (for posts, pages, and custom post types) and the Archive products widget (for Woocommerce product archives) can be enabled in their settings for FacetWP in the same way as the above widgets, while automatically using the archive query for the results.

Important:If your post listing is a WP archive template, use an Archive posts widget or an Archive products widget, and not a “normal” Posts widget, otherwise there will be a mismatch between your facets and the posts displayed in the listing. If you do use a normal Posts widget or a Loop Grid widget on your WP archive template, make sure to set the query to use the native archive query.

To change or set any query arguments (like posts_per_page) of an Archive Posts or Archive Products query, you can use a pre_get_posts hook.

Using a Posts, Loop Grid, or Woo Products widget WP archive template

To use an Elementor Posts or Loop Grid widget, or an UAE Posts or Woo Products widget on a WP archive page, set the 'Query' setting to use the 'Current Query' or 'Main Wuery'.
To use an Elementor Posts or Loop Grid widget, or an UAE Posts or Woo Products widget on a WP archive page, set the “Query” setting to use the “Current Query” or “Main Query”.

If you are using one of the following widgets on a WP archive page page, make sure to set it to use the native archive query that is already running on the page:

  • Elementor Posts widget
  • Elementor Loop Grid widget
  • Ultimate Add-ons for Elementor Posts widget
  • Ultimate Add-ons for Elementor Woo-Products widget

Depending on the widget the native archive query can be set in Query > Source (or Query Type) > Current Query (or Main Query). To change or set any query arguments (like posts_per_page) of an Elementor Posts or Loop Grid query, you can use Elementor’s Custom Query Filter hook.

Using a JetEngine Listing Grid Widget on a WP archive template

Using JetEngine Listing Grid Widget on a WP archive page.
Using JetEngine Listing Grid Widget on a WP archive page.

If you are using a JetEngine Listing Grid Widget on a WP archive page, make sure to enable the setting “Use as Archive Template”. This setting works similar to the “Source > Current Query” setting in native Elementor widgets. If enabled, the widget’s query settings will be ignored, and the native WP archive query that is already running on the page will be used instead.

Using Elementor pagination

Elementor Posts or Archive Posts widget pagination settings.
Elementor Posts or Archive Posts widget pagination settings.

If you are using Elementor’s pagination (which you can set in Posts, Archive Posts or Loop Grid widgets), FacetWP will detect this pagination and convert it for use with AJAX filtering. However, this will only work for the pagination options that have numbered pagination. FacetWP does not work with the “Load on Click” or “Infinite Scroll” pagination types. Choosing “Infinite Scroll” will also lead to JS errors in the Console. (Side note: FacetWP will not work with any type of “Infinite load” pagination).

In Loop Grid pagination settings, use 'Page Reload' in the 'Load Type' setting. The 'AJAX' option will not work with FacetWP.
If you are using a Loop Grid with pagination, choose “Page Reload” in its Pagination > Load Type setting. The “AJAX” option will not work with FacetWP.

Additionally, Loop Grid widgets have a “Load Type” setting in their Pagination setting. Make sure to choose “Page Reload”. The “AJAX” option will not work with FacetWP. FacetWP will detect Elementor pagination clicks and will use it to trigger AJAX loading itself. If the integration with Elementor pagination is not working correctly, you can also use a Pager facet, which offers several pager types, like numbered pagination and a “Load more” type.

Block FacetWP from using the wrong post widget query

Add a block_facet Query ID in Elementor
Add a block_facet Query ID in Elementor

If FacetWP is identifying the wrong query in Elementor, you can use the query_id setting to block FacetWP from using a post widget query that it shouldn’t. Give the ‘Query ID’ setting in the Elementor widget a value of block_facet, and add this code to your (child) theme’s functions.php:

How to use custom PHP code?

PHP code can be added to your (child) theme’s functions.php file. Alternatively, you can use the Custom Hooks add-on, or a code snippets plugin. More info
 
 
 
 
add_action( ‘elementor/query/block_facet’, function( $query ) {
 
$query->set( ‘facetwp’, false );
 
} );

Force FacetWP to use a specific post widget query

Add a use_facet Query ID in Elementor
Add a use_facet Query ID in Elementor

You can force FacetWP to use a specific Elementor query ID. Give the ‘Query ID’ setting in the Elementor widget a value of use_facet, and add this code to your (child) theme’s functions.php:

How to use custom PHP code?

PHP code can be added to your (child) theme’s functions.php file. Alternatively, you can use the Custom Hooks add-on, or a code snippets plugin. More info
 
 
 
 
add_action( ‘elementor/query/use_facet’, function( $query ) {
 
$query->set( ‘facetwp’, true );
 
} );
 
 
 
add_filter( ‘facetwp_is_main_query’, function( $is_main_query, $query ) {
 
if ( true !== $query->get( ‘facetwp’, false ) ) {
 
return false;
 
}
 
return $is_main_query;
 
}, 10, 2 );

Prevent page scroll with the AEP “Post Blocks Adv” widget

See How To Download

Share. Facebook Twitter Pinterest LinkedIn WhatsApp Reddit Email
developerszone.net
  • Website
  • Facebook

Related Posts

Oshine Multipurpose Creative WordPress Theme

June 2, 2025

happy addons pro free download

June 1, 2025

Astra Premium Sites Plugin + Agency Demos

May 20, 2025
RECENT CONTENTS
  • InBio Personal Portfolio Resume Theme June 4, 2025
  • Oshine Multipurpose Creative WordPress Theme June 2, 2025
  • happy addons pro free download June 1, 2025
  • Soledad Blog Magazine WordPress Theme free download May 29, 2025
  • ListingPro WordPress Directory Theme Free Download May 25, 2025
  • Astra Premium Sites Plugin + Agency Demos May 20, 2025
  • Elements Kit All In One Addons for Elementor Page Builder May 20, 2025
  • Martfury WooCommerce WordPress theme Free Download v3.3.1 May 18, 2025
  • Essential Addon For Elementor May 15, 2025
  • XStore WordPress WooCommerce Theme Free download May 9, 2025
Stay In Touch
  • Facebook
  • Twitter
  • Pinterest
  • Instagram
  • YouTube
  • Vimeo
Categories
  • Shopify Themes (201)
  • Web design (47)
  • Woocommerce Plugin (369)
  • WordPress Plugins (1,053)
  • WordPress Themes (686)
About DevelopersZone
About DevelopersZone

DevelopersZone is a sister concern of CodemanBD. We provide premium contents on WordPress Themes, Plugins, Shopify Themes & Woocommerce Addons.

Facebook X (Twitter) YouTube LinkedIn
Recent Content

InBio Personal Portfolio Resume Theme

June 4, 2025

Oshine Multipurpose Creative WordPress Theme

June 2, 2025
Our Content Categories
  • Shopify Themes
  • Web design
  • Woocommerce Plugin
  • WordPress Plugins
  • WordPress Themes
© 2025 Developerszone.net. Designed by WebBattalion.

Type above and press Enter to search. Press Esc to cancel.