Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Show only terms that are assigned, within filters
- This topic has 11 replies, 2 voices, and was last updated 6 years, 2 months ago by
FreshySites.
-
AuthorPosts
-
March 30, 2020 at 3:23 pm #26407
FreshySites
ParticipantWe are using 2 filters within Ajax Search Pro. The 2 filters are both dropdowns. One is a dropdown of categories, and one is a dropdown of a custom taxonomy. The problem is that both dropdowns show ALL the terms for each of those taxonomies. We only want to show terms that are actually assigned to a post.
Currently, the Category dropdown shows ALL categories, even though half of them aren’t being used yet. Same with the custom taxonomy. It shows ALL of the terms, even though only a few of them are actually assigned to a post. Is there a setting somewhere, so the dropdowns only populate with terms that are actually being used?
March 31, 2020 at 11:38 am #26500Ernest Marcinko
KeymasterHi,
If you update to the latest release (4.18.3), then there is a switch right here: https://i.imgur.com/GGHzUVq.png
That will do the trick.March 31, 2020 at 3:16 pm #26508FreshySites
ParticipantWe’re not showing taxonomy terms like that though. We’re puling from from the entire taxonomy. This way, if/when a new one is added, we don’t need to go into Ajax Search Pro settings and check a new box each time. Given this setup, how would we toggle an option to automatically exclude empty terms?
Screenshots: https://i.imgur.com/H1G2STx.png and https://i.imgur.com/rVS7mqD.png
It would be good if you could push an update that would omit empty terms, when using this sort of setup.
April 1, 2020 at 9:52 am #26515Ernest Marcinko
KeymasterThat update does exactly that – it does not matter if you push the whole taxonomy, or one by one, it will omit the empty ones anyways.
April 1, 2020 at 2:27 pm #26528FreshySites
ParticipantThat toggle isn’t there for us, when using the “Use all from…” taxonomy. https://i.imgur.com/JSdepAl.png
Or do you mean, if using a dropdown that is set to “Use all from…”, it will now cause the dropdown to hide the terms that don’t have any posts? That would be ideal, but that doesn’t seem to be the case…
We have this page, with 2 dropdown filters. The Category filter is showing ALL categories, even if some of them don’t have any posts in them.
April 1, 2020 at 2:27 pm #26529FreshySites
ParticipantYou cannot access this content.
April 1, 2020 at 2:31 pm #26530Ernest Marcinko
KeymasterYou have to have the latest release 4.18.3 installed, as I stated before. It is not present in releases before that.
Once you update, the option will appear.April 1, 2020 at 2:33 pm #26531FreshySites
ParticipantI understand that. It’s the version I’m on: https://i.imgur.com/wpGB8JX.png and https://i.imgur.com/MShbNOz.png
April 1, 2020 at 2:45 pm #26537Ernest Marcinko
KeymasterThen there is something wrong with that, some files may have been corrupted. Please re-download, uninstall and re-install the latest release. Also, please use the WordPress plugin manager to install, instead of uploading via (s)FTP, if possible.
April 1, 2020 at 2:51 pm #26541FreshySites
ParticipantCan you confirm all settings will remain, if I uninstall?
April 1, 2020 at 2:56 pm #26542Ernest Marcinko
KeymasterApril 1, 2020 at 3:00 pm #26543FreshySites
ParticipantExcellent. It works now. Thanks!
-
AuthorPosts
- You must be logged in to reply to this topic.