Show only terms that are assigned, within filters

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Show only terms that are assigned, within filters

This topic contains 11 replies, has 2 voices, and was last updated by

 
Participant
1 year, 9 months ago.

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #26407

    Participant

    We 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?

    #26500

    Hi,

    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.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #26508

    Participant

    We’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.

    #26515

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

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #26528

    Participant

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

    #26529

    Participant
    You cannot access this content.
    #26530

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

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #26531

    Participant

    I understand that. It’s the version I’m on: https://i.imgur.com/wpGB8JX.png and https://i.imgur.com/MShbNOz.png

    #26537

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

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #26541

    Participant

    Can you confirm all settings will remain, if I uninstall?

    #26542

    Yes

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #26543

    Participant

    Excellent. It works now. Thanks!

Viewing 12 posts - 1 through 12 (of 12 total)

You must be logged in to reply to this topic.