Skip Navigation

[Resolved] Multiple Filter On Unique View

This support ticket is created 4 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

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 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 10 replies, has 2 voices.

Last updated by Shane 4 years, 1 month ago.

Assisted by: Shane.

Author
Posts
#1999211

I want to use multiple filters in one of my views is it possible or not ?

hidden link

Thanks.

#1999265

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Kevin,

Thank you for getting in touch.

You are not able to have 2 separate search filter group targeting one search view while maintaining AJAX capabilities.

It is however possible to do without AJAX as you can create one set of search filter in another view and then add it to this page. It is quite a complex setup but the main feature is that you won't be able to filter the view with AJAX or combine the parameters from the 1st search with the second search as each would be considered as its own individual search.

Why not use one search filter group and separate them as you have them now ? With our Blocks plugin you can add you filters to separate container blocks when you are adding them to the search.

My Advise is to create it as one search as this will allow you to have access to the AJAX filtering as well as to combine any of the search parameters.

Please let me know what you think of this.

Thanks,
Shane

#2000203

Hello Team,

Thank you for your Reply,

Here we'll talk about some issues which we are facing right now

The first thing is as we activate the plugin of "Toolset View" then the "Toolset Block" plugin will be automatically deactivated

Also as per your above thread, let me know that we have created one "New Plans View List Page' and we have added the filter for "Bedroom" as we already shared with you in the screenshot "Bedroom" as filter 1

hidden link

Now as you guided us to create another View as Advance Filter in that we have created "Bathroom" Filter with the help of shortcode we have added this into Elementor as well

But when we search for "Bedroom: it will display the correct results but if we search for "Bathroom" then it won't display the correct results

So this is a major issue we are facing

Can you please help us with this with your techniques or else if you have any other solutions to resolve this

For your better understanding, we are attaching a Video URL for your ready reference

hidden link

Thank You!

#2000735

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

Firstly with Views and Blocks.

Our Blocks plugin and Views plugin are the exact same plugin with only one difference. The Block plugin comes with the Block editor enabled to create your views by default, while the Views plugin comes with the Classic editor enabled by default. Ofcourse you can change this in either plugin by going to Toolset -> Settings -> Editing experience.

Secondly you can only have one enabled at a time so it matters not if you have the Views or Blocks plugin enabled, they are both the same.

For your next issue regarding the search. In order to separate the search filter you shouldn't copy and paste the shortcodes from the view as these shortcodes only work when they are using inside the context of a View.

What you will need to do is to use the View shortcode that allows you to ONLY get the search filters which is this shortcode below.

[wpv-form-view name="new-plans-view-list" target_id="self"]

Please let me know if this helps.
Thanks,
Shane

#2001585

Hello @Shane,

Hope you are doing good!

First of all, thank you for your reply,

We are attaching one video for your better understanding, we are still facing the issue just because we are using multiple filters and yet this is not working fine we are not able to understand why this is happening can you please guide us with more solutions

We have also followed your given instructions too but still, that couldn't be worked as well

Kindly go through below attached video

hidden link

My Filter Example page: hidden link

Let us know your suggestions

Thank You!

#2001595

Hello @Shane,

Hope you are doing well!

We need to tell you we are still facing these issues which we have talked about yesterday as well, Just because we have applied multiple filters it's not working properly

Also, we have followed your provided instructions too still it couldn't be worked properly

For your better understanding, I have created one video so that you can understand better why this issue is still existing

Can you please guide us with more of your techniques or else do you have any other ways to resolve this

hidden link

My Filter Page Example: hidden link

Let us know your reviews for the same

Thank You!

#2002125

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

both filters.PNG
bedroom filter.PNG

Hello,

Thank you for the video demonstration.

I now see the next issue, let me explain a few things :

1. A view that uses a search filters by the way of a Query filter that gets the value that is passed in the URL.
2. The reason why the Bedroom filter works was because when the frontend filter is added, there is a corresponding query filter that gets added to the view. See Screenshot.
3. Now your Bathroom filter is on a completely separate view, which means that your main view's Query filter doesn't get updated to include the Bathroom filter. The good thing is the filters can be added manually using the Add filter button as you can see in my screenshot.
4. I Went ahead and added the Bathroom filter to the Main view that is listing out the properties. See Screenshot
5. Now when you add a new Query filter for the Corresponding Frontend Filter in the Secondary view, you will need to set it to URL Parameter and the URL parameter should be in the format wpv-wpcf-{field_slug} where you will replace the field slug with the actual slug of the custom field.
6. To verify that the url parameter is correct you can check the query filter of your secondary view to see what it is using and then copy this to your main view.

Please let me know if this clears this up for you and if you have any further questions on this particular issue.

Thanks,
Shane

#2004747

Hello @shane

Hope you are doing good!

We have created one video and we have explained some of the scenario's for the "Bathroom" filter that is not working properly for both the options that are minimum and maximum

hidden link

Do you have any solutions or any kind of logic to fix this because this filter is not working properly at all

Let us know your suggestions for this

Thank You!

#2005427

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Decimal.PNG

Hello,

This should now be working. The reason was that you were comparing it as a Number when the numbers contained decimal values. To resolve this the filter will need to be changed to compare them as decimal values. See Screenshot

Also I would advise not to enter the site credentials on the forum as it is public. If you wish to share any private information with the site please let me know and I will enable the private fields. I've went ahead and removed the credentials from the forum and added it to the notes for this ticket.

Please let me know if this helps.

Thanks,
Shane

#2006035

Hello @shane

Hope you are doing good!

We need to tell you we are still facing issue for "Minimum Bathroom" filter is not working properly also it's not displaying the correct results as well

Kindly go through below mentioned video for a better understanding

hidden link

Let me know if you have any techniques to resolve this

Thank You!

#2006463

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

I did a double check on the filter and it works fine. Currently the filter is set to perform a Between logic, this means that if you select 2.5 as the Minimum number of betweens and Max as the Maximum number of bedrooms then any Post that has a bathrooms of 2.5 and greater will be displayed.

You won't get only posts with 2.5 bathroms because you are using a Min/Max type filter that functions as a between so it is actually correct when you selected 2.5 as min and Max as the Maximum that you will get posts with bathrooms of 3 and 4

Please let me know if this clarifies the issue for you.

Thanks,
Shane