Is there a way to use interactions to append text to the current URL?
I have a query loop on a page that can be filtered using WP Grid Builder. When you apply filters, it appends the URL to include the search parameters like this:
/groups/
/groups/?_group_category=community-group
Is it possible to use an interaction to add that filter without reloading the page? I’ve found several methods to go to the URL with the search parameter applied, but they all reload the page. My goal is to have a button higher on the page above the query loop that, on click, scrolls to the query loop and applies a filter.
Yes. From what I can tell, I can only use WP Grid Builder to build groups of buttons, and in the use case that I’m trying to implement, I need a single button to show a category, not a group of buttons to change categories.
I was able to find a method that could append the URL without reloading the page, but it doesn’t apply the filter unless the page reloads, so I may need to do something with Grid Builder to get the filter to apply.