This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #29569
    Marco ComunicativiMarco Comunicativi
    Participant

    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 MarcinkoErnest 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!

    #29575
    Marco ComunicativiMarco Comunicativi
    Participant

    You cannot access this content.

    #29577
    Ernest MarcinkoErnest 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.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.