Skip Navigation

[Resolved] Only display search filters options that create a result

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

Problem:
Only display search filters options that create a result using view

Solution:
With your view - under the section "Custom Search Settings" I've selected the option "Let me choose individual settings manually" and further selected the option "Show only available options for each input.

Relevant Documentation:
=> https://toolset.com/course-lesson/creating-a-custom-search/

This support ticket is created 3 years 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 7 replies, has 2 voices.

Last updated by ilonaB-2 3 years ago.

Assisted by: Minesh.

Author
Posts
#2229363

Hello,

Currently the search filters show all available options.
However i only want the ones shown that the users have selected on their profile.

I know toolset offers this option (have seen it before), but so far haven't been able to find the exact course that describes what settings to change to get this done.

Can someone please point me in the right direction?

Thanks in advance for the support.

#2229851

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

By default, the view display the options for the filter for the available results only. I'm not sure what is your current view setting and what kind of view you are using.

If you can share more details and what is your expected results with few screenshots and share admin access details and problem URL where you added your view I would be happy to review your current setup and check whats going wrong there.

*** 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.

#2230737

Minesh
Supporter

Languages: English (English )

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

I've added the view on the following pages:
hidden link
hidden link
==>
I've visited both of the above pages and I do not see any view is added on above pages. The only thing I can see is the search textbox.

Please check the following screenshot:
=> hidden link

#2230745
Zoekresultaten.png
Home.png

I'm not sure what you mean with you don't see the view:

When i co to those pages i see attached images.

But the view is in the admin area under Toolset>Views>ID 4102...

#2230775

Minesh
Supporter

Languages: English (English )

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

Ok - I can see the view on frontend when I visit the page as Guest user. As I was logged-in, it was not displaying the view so that sorted out.

With your view - under the section "Custom Search Settings" I've selected the option "Let me choose individual settings manually" and further selected the option "Show only available options for each input":
=> hidden link

Please check the following screenshot:
=> hidden link

Can you please confirm it works as expected now.

#2230789

Thank you so much, this is what i've been looking for. It seems everything is working as it's supposed to.

Do you also have time to check on the pagination issue?

Thanks in advance!

#2230815

Minesh
Supporter

Languages: English (English )

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

I've wrap the pagination with div as given under:

<div class="d-flex justify-content-center">
[wpv-pagination]
	[wpv-pager-nav-links output="bootstrap" previous_next_links="true" reach="2" text_for_previous_link="Vorige" text_for_next_link="Volgende"]
      [/wpv-pagination]
</div>

I can see the pagination is displayed center of content: hidden link

#2230817

Hi Minesh,

Thanks again for all the great support! Everything works as I want 😉

My issue is resolved now. Thank you!