Change selected filter based on URL

Ticket for: Combo Blocks
0
Change selected filter based on URL 1
wowdigitalinc
Jul 24, 2020 02:09 AM 1 Answers
Member Since Jul 2020
Subscribed Subscribe Not subscribe
Flag(0)

Great plugin - keep up the awesome work.

I'm wondering if it's possible to update the plugin to add an ID to the filter options (perhaps the category name) so that from the URL it's possible to send a link someone so that it changes which filter starts as active.

So if I have these as the filters showing:
All, Category A, Category B, Category C

I could send someone a url like https://site.com/pagewithpostgrid/#CategoryB

And even though I have All as the default in the settings, the URL would force the Category B to show.

There would need to be a way to have the spaces in the category name removed.

2 Subscribers
Change selected filter based on URL 1
Change selected filter based on URL 3
Submit Answer
Please login to submit answer.
1 Answers
Sort By:
Best Answer
0
Change selected filter based on URL 4
PickPlugins
Jul 25, 2020
Flag(0)

Welcome to our forum.
Not based on hash but in GET method you can do this, please see the demo
https://pickplugins.com/demo/post-grid/post-grid-filterable/?filter=tshirts

Regards

Change selected filter based on URL 5
wowdigitalinc
- Jul 25, 2020 12:36 AM
Flag (0)
0

What if the category has 2 words? I tried putting a %20 between them, but that's not working. Also, is it case sensitive? So if one of them was "Category 2", what should the URL be?

Sign in to Reply
Replying as Submit