Skip Navigation

[Resolved] Setting Filter Results

This thread is resolved. Here is a description of the problem and solution.

Problem:
Setting Filter Results

Solution:
The issue was user has applied the wrong term slug to filter with taxonomy term.

You can find proposed solution in this case with the following reply:
https://toolset.com/forums/topic/setting-filter-results/#post-2330219

Relevant Documentation:

This support ticket is created 2 years, 8 months 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 11 replies, has 2 voices.

Last updated by Pete 2 years, 8 months ago.

Assisted by: Minesh.

Author
Posts
#2330097
AA TS see.png

Hi there,

Been trying to sort this for hours and just can't get this to work and would appreciate some thoughts please.

On this page:
hidden link

We need to create one View, this can then be used numerous times for the page variations we have.

So we need to use this kind of short-code on the page:
[wpv-view name="england-destination" wpv-area="norfolk,suffolk,devon,cornwall" view_display="layout"]

Now this works as you see, however we need to specify a collection - Sea View.

The moment I add this wpv-collection="sea-view" to the code it breaks.

To be clear if we add this full short-code:
[wpv-view name="england-destination" wpv-area="norfolk,suffolk,devon,cornwall" wpv-collection="sea-view" view_display="layout"]

It breaks. The Tax Filter is set as in the image attached.

The reason we are using short-codes is there are many areas that need different collections.

Any thoughts would be great. Thank you.

#2330135

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Can you please share admin access details and let me check whats going wrong with your seutp.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2330145

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Can you please share correct admin user name, it seems by mistake you copy the admin URL as username.

#2330149

Sorry Minesh,

Updated this for you 🙂

#2330161

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Can you please guide me where exactly you added the following view shortcode?

[wpv-view name="england-destination" wpv-area="norfolk,suffolk,devon,cornwall" wpv-collection="sea-view" view_display="layout"]
#2330165
aa plz see.png

Sure, you add it to the page - Filer Code and Results Code.

Thank you.

#2330219

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I've adjusted the view's shortcode attribute names as: wpvarea and wpvcollection and also updated it to view's query filter section.

[wpv-view name="england-destination"  wpvarea="norfolk,suffolk,devon,cornwall" wpvcollection="sea-views" view_display="layout"]

The issue was the wpvcollection term slug is setup as "sea-views" not "sea-view".

With your previous shortcodes, you used to try: "sea-view" that is why it failed.

[wpv-view name="england-destination" wpv-area="norfolk,suffolk,devon,cornwall" wpv-collection="sea-view" view_display="layout"]

Can you please check if it works as expected:
=> hidden link

#2330225

Hi Minesh,

Goodness, I've wasted half a day because of a simple typo....very frustrating however thank you very much for this 🙂

Can I ask one more thing ref this View?
As you can see I have added a 3rd filter (Property Features)
hidden link

Now I would ideally like this to be Collections or Area, so visitors can refine their search.

However am I right in thinking, because Collections and Area are in the Taxonomy Filter of the View, this will never work?
I have tried this in the past, if I was to add say...Area instead of (Property Features) the View will break.

Thank you.

#2330289

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

As per our support policy, we entertain only one question per ticket. This will help other users searching on the forum as well as help us to write correct problem resolution summery. I already finished my shift here, if you want I can split the ticket with new question and will be able to guide you tomorrow. I hope this is ok, if that's fine with you, you are welcome to mark resolve this ticket.

#2330663

Hi Minesh,

Ok I understand.
If you can split the ticket I would be very grateful. Also if you can find the time to answer as you are familiar with what I have done, this would be great 🙂

Thank you.

#2330667

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I've split the ticket with your new question here, we can communicate there.
=> https://toolset.com/forums/topic/split-setting-filter-results-advance-filtering-with-or-clause-for-multiple-taxonomy-filters/

You are welcome to mark resolve this ticket.

#2330721

My issue is resolved now. Thank you!