Home Forums Basel support forum Filter Refreshes Too Fast Reply To: Filter Refreshes Too Fast

#67368

antonchaik88
Participant

I am still trying to work this out and it’s proving very difficult.
You have a function: get_page_base_url( $taxonomy ) which I believe creates the url for each item in the layered nav. You then use this as a base, and then add the filter item to the url, or if it’s selected, remove from the list of filters inside the link.

What would be the best way to do the following:
1) For every filter item selected, add that item to an array
2) Have a submit button that spins off the query
3) Once clicked, it would send the list of clicked items — How can I link them up in php?
4) Returns a link to the client, which then I call pjax on to actually do the filtering.

Also, get_page_base_url( $taxonomy ) is protected. I’d like to reuse some of this code, any advice?