Compatibility with FacetWP
- techniquepixParticipant3 years, 3 months ago #27446
Hi,
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 usesposts_pre_query
filter 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 you
techniquepixParticipant3 years, 3 months ago #27448I 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 ?techniquepixParticipant3 years, 3 months ago #27450If 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).wpsolrKeymaster3 years, 3 months ago #27451Added to the roadmap: https://trello.com/c/qATg3gh0/165-wpsolr-wrongly-active-on-post-type-archives
techniquepixParticipant3 years, 3 months ago #27452Ok, thanks. Do you have an idea when you will have time to check that and fix it ?
In the meantime I’ll use a simple page and not the archive page. It works that way.Thanks
techniquepixParticipant3 years, 3 months ago #27454Great ! Thank you
techniquepixParticipant3 years, 2 months ago #27468But 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).Thanks.
You must be logged in to reply to this topic.