Skip Navigation

[Gelöst] Search: Count not updating

This support ticket is created vor 6 Jahren, 7 Monaten. 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+00:00)

Dieses Thema enthält 2 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von marcialB vor 6 Jahren, 7 Monaten.

Assistiert von: Nigel.

Author
Artikel
#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: versteckter 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

Sprachen: Englisch (English ) Spanisch (Español )

Zeitzone: Europe/London (GMT+00: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.