• Resolved harrywanghr

    (@harrywanghr)


    I am using the FacetWP plugin for WordPress and the Elementor plugin.Currently I am using Elementor to build the interface and FacetWP to filter the acf field of posts in one of my post types.My current Bug is that when I use FacetWP in Elementor’s Archive template to filter my Loop Grid component in Elementor, I turn on the FacetWP switch on the Loop Grid as the data source for filtering, and although it is working properly on FacetWP, such as when I go through the category’s how far button to filter, it was able to display how many articles matched the value, but the Loop Grid did not correctly change and display as the result of being filtered.I’ve done some testing, both with new interfaces and with other Elementor components, and my current buggy combination is using Elementor’s Archive template plus the Loop Grid component. But if I use a Page and use the same layout on the Page (copied directly from the Archive template), the Loop Grid updates correctly. I tried again, using the Archive template, but using the Archive Posts component, and it also displays the filtered results correctly.It’s not clear to me now where the problem might be.

Viewing 1 replies (of 1 total)
  • Thread Starter harrywanghr

    (@harrywanghr)

    Problem solved, I found the following information in FacetWP’s official help documentation, so I don’t need to set up the data source manually if I’m already using an Archive type template.

    If you are using?Elementor Pro?with a?Posts widget?or a?Loop Grid widget, and you need to adjust the query, you can use Elementor’s?Custom Query Filter hook.

    If you are using a Posts widgets or Loop Grid widgets on a WP archive templatethe 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.

Viewing 1 replies (of 1 total)
  • The topic ‘Problems with FacetWP and Elementor plugins’ is closed to new replies.