Compatibility with FacetWP
2 years, 1 month ago #27446
I need to use FacetWP plugin on the archive page of my CPT, but with WPSOLR activated, facet options are not displayed.
I found that your plugin uses
posts_pre_queryfilter and returns an empty array. It’s why I don’t have the FacetWP options on my filters, I suppose.
How could this issue be fixed ?
Thank you2 years, 1 month ago #27448
I don’t want to use the facets of WPSOLR. I need to use the facets of FacetWP.
I only use WPSOLR for search results page, not on my CPT archive pages.
I managed to use FacetWP facets on a page with a custom query. But on the archive page of my CPT, FacetWP facets are not working correclty beacause of WPSOLR. And I didn’t activate WPSOLR to replace the archive page of my CPT.
WPSOLR shouldn’t have an impact of my archive page if I didn’t activate ‘Post Types’ on screen 2.1 in BO, right ?2 years, 1 month ago #27450
If I desactivate WPSOLR everything works fine. The options of FacetWP facets are displayed.
On my local site, I only activated WPSOLR, without setting any parameters, and I have the problem. As soon as WPSOLR is activated, FacetWP options are not displayed (because the query returns an empty array).2 years, 1 month ago #27451
Added to the roadmap: https://trello.com/c/qATg3gh0/165-wpsolr-wrongly-active-on-post-type-archives2 years, 1 month ago #27468
But since the configuration “Replace front-end archives” is disabled in our backend for post types, would it be possible to also disable Wpsolr custom query when on an archive page according to this config ?
There is a method get_is_replace_by_wpsolr_query, would it be possible to add some more logic around ?
We already use the solution with a shortcode on a plain page but it’s not optimal (WPML compatibility).
You must be logged in to reply to this topic.