Skip Navigation

[Resolved] filtering by multiple url parameters

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 5 replies, has 2 voices.

Last updated by Waqar 1 year, 2 months ago.

Assisted by: Waqar.

Author
Posts
#2644541

I have a view the filters events by a category name specified in a parameter in the URL.

Id like to add to that view and additional view that selects one that is featured from the same category is there a way to specify two filter parameters in a url

So my current url is
/programming/?eventscat=events
can i somehow do
/programming/?eventscat=events&eventscat=featured

So my primary view with show events
and my second view with show the featured event

Or perhapos theres a better way you could suggest

#2644751

Hi,

Thank you for contacting us and I'd be happy to assist.

You can pass on multiple URL parameter values, by passing them as arrays like this:

/programming/?eventscat[]=events&eventscat[]=featured

regards,
Waqar

#2645013

Hi Waquar this didnt work as anticipated so i took another approach. I added a check box field to indicated if the event is featured to the post

So now i can select for the category in the url and "is featured" by the field.

But a new complication is apparent- That his doesnt work if the page is searhed for by the toolset internal "search
function

You can see what i mean more clearly here
This urls hidden link shows the blue banner across the top of the page as anticipated

hidden link this one has no featured event and nothing shows

However if you go here
hidden link and select events you get the same selection as in the first url but the featured banner doesnt appear.

How can we acheive this.

Hopefully ive made the issue clear here.

Thanks

#2645217

Looks like you've made some changes after writing to us, as I do see the featured event banner, when I visit that page, without any URL parameter.
( screenshot: hidden link )

Do you still need any assistance with this? If yes, please share the exact steps to see the issue and I'll suggest the next steps, accordingly.

#2645269

Yes sorry I didnt explain carefulyy

If you goto the page with no parameter thats correct theres no banner

However if you select "events" from the filter Its the same view or selection as if you add the parameter

like this hidden link

Id like to be able to see the banner when using the on page filter the same as when i filter the page with the parameter

Hope that makes more sense

#2645627

> If you goto the page with no parameter thats correct theres no banner

- But, I do see the featured event banner when I visit the page with no parameters, as I shared a screenshot of that, in my last message.

The abnormality that I see is that this banner doesn't change or go away when unrelated terms like 'virtual' or 'receptions' are selected in the search filtering field.

That is happening because the second view for the featured event banner seems to be placed outside of the parent view's section which is updated with the AJAX.

If you've placed that second view in the 'Search and Pagination' section of the parent view, make sure that it is within the '[wpv-filter-start hide="false"] ..... [wpv-filter-end]' tags.

And if you've placed that second view in the 'Loop Editor' section of the parent view, make sure that it is within the '[wpv-layout-start] ..... [wpv-layout-end]' tags.