When you are using the Abandoned Cart Recovery plugin by Addify, FacetWP will detect the wrong query for your post/product listings, causing the facets to not appear.

Add the following code to your (child) theme’s functions.php to fix this issue:

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_filter( 'facetwp_is_main_query', function( $is_main_query, $query ) { if ( 'addify_acr_carts' == $query->get( 'post_type' ) ) { $is_main_query = false; } return $is_main_query; }, 10, 2 );

See also

Last updated: May 2, 2023