• Hello,

    For my CPT archive, I’ve added the Filter Widget block, which displays the taxonomy terms associated with the CPT so I can filter posts by term in my loop grid.

    I’d like to be able to go directly to my archive with a filter enabled by default. I’ve seen that I can do this via ?results=filter-ID&categorie=IDTERM

    Except that when I go to the page, it loads the posts first, then filters them afterwards. How can I make it display the filtered posts directly without making the AJAX request?

Viewing 1 replies (of 1 total)
  • Plugin Support Dara

    (@dara4)

    Hi dizajner (@dizajner),

    The filter widget currently works only via AJAX after the initial loop is rendered, so it cannot modify the first PHP query. If you need pre-filtered results on page load, you would need to apply the filter at the Elementor query level (server-side via elementor/query hook) or using BPFWE Post widget query hook. Using $_GET, you should be able to make the custom query dynamic.

    Hope this help,
    Dara

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.