Hide empty filter values of custom fields

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Hide empty filter values of custom fields

This topic contains 3 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 3 years, 6 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #29569

    Hi, how can i hide filter values of custom fields, if they are empty?

    For example, in this page https://www.gruppo-immobiliare.com/residenziale/ , under “Tipologia immobile” custom field, some empty values should not appear as “albergo”, “capannone”, “magazzino” etc… because they are subcategories of another category and their results are empty here.

    Another thing, is possible to show filter price with minimum and maximum amount text fields, instead of range slider?

    Thank you
    Best regards
    Marco

    #29572
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi Marco,

    I tried to access the site, but I am getting this error message: https://i.imgur.com/DvbRQoT.png
    Can you please check that? Thank you!

    Best,
    Ernest Marcinko

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


    #29575
    You cannot access this content.
    #29577
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Thank you, that fixed it.

    Unfortunately I’m afraid this is not possible without custom coding. The plugin only requests the custom fields from the wordpress post meta database or ACF (if you use it). You can take a look at the frontend filters API, that lets you modify the filter values.

    Best,
    Ernest Marcinko

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


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

You must be logged in to reply to this topic.