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.
Just copy the shortcode from the FacetWP overview page or facet/listing settings page, and paste them into the widget.
FacetWP on WP archive templates
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 Source” setting to “Current Query”.
Using a Posts or Loop Grid widget on a WP archive template
Using an Elementor Loop Grid on a WP archive page.
If you are using an Elementor Posts widget or a Loop Grid widget on a WP archive page, make sure to set the “Source” setting to “Current Query”: the native archive query that is already running on the page.
Using a JetEngine Listing Grid Widget on a WP archive template
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.
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.
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
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
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
Prevent page scroll with the AEP “Post Blocks Adv” widget
Prevent scrolling on page load with the AnyWhere Elementor Pro Post Blocks Adv widget.
If you are using the AnyWhere Elementor Pro “Post Blocks Adv” widget (which has FacetWP integration), you may see the page scroll to the top of the results after interacting with facets.
This scroll on (AJAX) page load can be disabled by the “Disable Scroll to Top on Load” option, located under the “Pagination” section of the Post Blocks Adv widget.
Be aware that this Pagination section can be hidden if you happen to have the “Infinite Scroll” option enabled in the “Layout” section. If that is the case, disable the Infinite Scroll option, then go to the Pagination section and enable the “Disable Scroll to Top on Load” option.
It’s best to then keep the Infinite Scroll option disabled because FacetWP does not support any form of infinite scroll. The closest thing is the Pager facet, which has a pager type that generates a “load more” button, working similar to infinite scroll.
Customize the Elementor Posts or Loop Grid widget query
If you are using a Posts widgets or Loop Grid widgets on a WP archive template, the Query > Source setting must be set to “Current Query” to make these widgets work correctly. However, in this case, the widget will not display any query settings anymore, and the “Posts per Page” setting (under Layout) will have no effect. In this situation, this hook is the best way to change or set any query arguments, like posts_per_page.
This hook works similar to WP’s pre_get_posts hook. It exposes the WP_Query object and allows you to customize the query in any way you want.
How to give your widget’s query a unique Query ID.
In the following example we add a fallback sorting method by overriding the original orderby query argument, and we change the default posts_per_page to 12. We also add an extra (optional) condition to let the hook run on category archive pages only.
Make sure to replace my_query_id with the unique Query ID you have set in the “Query ID” setting of the widget:
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/my_query_id’, function($query) { // Replace “my_query_id” with your unique Query ID
if ($query->is_category() && $query->is_main_query()) { // Optional conditions
$query->set( ‘posts_per_page’, 12 );
$query->set(‘orderby’, [
‘date’ => ‘DESC’, // Primary sort: by post date
‘title’ => ‘ASC’ // Secondary, fallback sort: by post title
Add a custom “No results” message for Posts or Loop Grid widgets
To add a custom “No results” message when a Posts or Loop Grid widget does not return any results, add the following snippet 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
Fix issues caused by Elementor’s Motion Effects options
There are several known incompatibilities with the following Advanced > Motion Effects pane options of Elementor sections/widgets:
Do not use Elementor Pro’s “Sticky” option
Do not use Elementor Pro’s “Sticky” or “Entrance Animation” options.
If you have Elementor Pro installed, Elementor sections/widgets will have a “Sticky” option in their Advanced > Motion Effects options pane. The option creates a “sticky scrolling” effect.
This “Sticky” option is incompatible with FacetWP when used on sections/widgets containing facets or listings.
If this option is enabled, Elementor’s JavaScript will dynamically duplicate the section/widget in the code (invisibly) when the page is scrolled. This causes the facets or listings within the section/widget to be duplicated too, resulting in several issues with FacetWP.
One noticeable effect will be duplicate facets in the Mobile Flyout, if you are using that.
If you need a “sticky” effect on certain page elements, use a script that does not duplicate elements. Or better yet, create the effect by using the position:sticky property in CSS:
How to use custom CSS?
CSS code can be placed in your (child) theme’s style.css file. Alternatively, you can add it manually between <style> tags in the <head> section, in your (child) theme’s header.php file. You can also add it with a wp_head hook in your (child) theme’s functions.php file or in the Custom Hooks add-on. Or you can use a code snippets plugin. More info
.myelement {
position: sticky;
top: 20px;
}
This solution is also used on this Help Center page for the sticky right sidebar.
Do not use Elementor’s “Entrance Animation” option
All Elementor sections/widgets have an “Entrance Animation” option in their Advanced > Motion Effects options pane. When enabled, this option sets the section/widget to be invisible and lets it appear with an entrance animation when you scroll down the page.
Entrance Animations are incompatible with FacetWP when used on widgets containing facets or listings. Enabling this option will lead to issues like posts not showing up after filtering.
Do not use facets in Elementor popups
We regularly see users trying to get facets working within Elementor popups. Unfortunately, Elementor popups are incompatible with FacetWP.
The closest alternative is the Mobile Flyout add-on which was built specifically for mobile support.
Only logged in customers who have purchased this product may leave a review.
READ FIRST
Our business hours are Monday to Friday from 10:00 am to 4:00 pm (GMT-8), any request made outside these hours will be process until next business day. Support and Updates can take 24 to 48 hours. Support provided is for product installation. Please be aware of possible time zone differences when waiting for our reply.
Updates:
To receive an email notification when products have been updated, be sure to click on the notification button below the product image.
On a standalone item, you will get lifetime updates. If you choose a membership, updates and access to your items will be available as long as your membership is active.
We regularly update products as soon as we are notified about an update, we go and download it from the author and update it on our site, but In case the current version of the product is not the latest, You can request an update for the product.
We send regular emails advising when products have been updated so please be sure to provide an active email address when you sign up.
Support:
If you have any question or need help installing products purchased on our website, please don’t hesitate to contact us.
Please note that we are not developers of the provided products, so our technical support capabilities are limited. We do not change product functionality and do not fix developer bugs.
We don’t offer any additional author services like author’s support and license keys and we are not affiliated or in any way related to third-party developers or trademark owners. If you want to know more about GNU / GPL License, CLICK HERE.
Abuse Warning:
Please note that accounts are monitored and redistribution of our content is not allowed and will not be tolerated.
Our system may detect patterns of downloading items from non-end users outside of our fair use policy.
Any violation of our terms of use will result in permanent account suspension and no refunds will be issued.
Subscriptions can be cancelled at any time from your account control panel.
Downloads are strictly subject to our fair use policy.
All the plugins and themes on gplplugins.site are released under the GPL (General Public License) license. It is 100% legal for us to redistribute the products to you. It is completely safe, legal, and legit.
This is the original file from the developer, not modified, not nulled and not malware.
Reviews
Clear filtersThere are no reviews yet.