Skip Navigation

[Resolved] Search: Count not updating

This support ticket is created 6 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+01:00)

This topic contains 2 replies, has 2 voices.

Last updated by marcialB 6 years ago.

Assisted by: Nigel.

Author
Posts
#696066

Hi there

I am trying to have a custom search that filters trough multiple taxonomies.

Link to a page where the issue can be seen: hidden link.

I expected to see that the "count" value changes based on the options already chosen. Right now it happens that you chose an option from the first "filter" and then one from the second, but there is no match, even tough it states "2" as the count.

Example: I chose "Thema A" from the first filter and then the option "Kader". That has no results because there is no post that has both taxonomies.

What I need is, that the counts in the other filters change each time I chose an option.

Example: I chose "Thema A" from the first filter. Now the values in filter two should change to 1, 0, 0 because there is only a match with the first one.

Thanks for your help.

Best,
Marcial

#696326

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

Screen Shot 2018-04-20 at 10.22.49.png

Hi there

It's not clear how you are adding the count to the checkbox filter controls, but the one thing that may be relevant here is that you can set the option to update the filter controls according to the matching posts, as shown in the screenshot.

If you can describe how you added your filter controls to include the post count I may be able to give a more definitive answer.

#696650

Hi Nigel

Great, enabling the advanced options did the trick. Now it correctly adjusts the numbers.

Thanks.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.