Forums Forums Search & Filter Pro S&F – AE Pro Posts Blocks – Taxonomies from ACF – not filtering

Viewing 10 posts - 1 through 10 (of 10 total)
  • Anonymous
    #229454

    Hi,

    I followed the instructions to make the plugin work with Anywhere Elementor Pro: https://searchandfilter.com/documentation/3rd-party/elementor/#anywhere-elementor-post-block

    It didn’t work for me, then in the support I read a similar case:
    https://support.searchandfilter.com/forums/topic/sf-ae-pro-posts-blocks-custom-query-filter-query-not-filtering/

    and I made some changes in function file in child theme:

    function my_super_filter_function($query_args){
      $query_args['search_filter_id'] = 4601;
      return $query_args;
    }
    add_filter('my_super_filter', 'my_super_filter_function');

    But nothing happend, the filter loads the page but nothing is filtering.

    On the other hand the maps and feature images desappear when the page is reloaded.

    What am I doing wrong?
    Thanks

    Anonymous
    #229455

    Sorry, the URL:

    https://somensonloudet.com/proyectos/

    Thanks!

    Trevor
    #229521
    This reply has been marked as private.
    Anonymous
    #229549
    This reply has been marked as private.
    Anonymous
    #229646

    Hi Trevor,

    I fixed it! Just a question, how can I do to make a slide range with taxonomies? and if is not possible how can I make a slide range?

    Thanks

    Trevor
    #229727

    That is not possible, sorry. WordPress taxonomy fields are designed to hold only textual data and are set as arrays. Sorting can only work on numerical single value data, and so can only work on custom fields defined as such.

    If you do use a Custom Field (use a plugin like ACF where you can specify that the data is a numeric), every post has to have a value in that field. If they do not, when using a range field, all posts that have no value will disappear from the results.

    Anonymous
    #229873

    Hi Trevor,

    Ok, I created a custom field (Number data) with ACF plugin called “ano”, I filled all the number fields for every post, but when I filter for “years” using Post Meta (range slider->Plain text) nothing shows.

    And the rest of the filters are gone.

    I have another problem when I add Post Meta: Others filters (taxonomies) dosen’t work.
    If I remove this Post Meta Filter others filters works well.

    Can you take a look, please? There is no erros in the Console.

    All the post are in a CPT called: “Obras y Proyectos”.

    https://somensonloudet.com/proyectos/

    Thanks.

    Trevor
    #229875

    From what I can see you have select the meta key name _ano

    Look instead for the field name ano

    The difference is the preceding underscore.

    Anonymous
    #229877

    Hi Trevor,

    It works! You can close this ticket

    Thank you so much!

    Trevor
    #229879

    Thanks for letting me know. I will close this thread for now.

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