• Resolved albanotoska

    (@albanotoska)


    Hello, I am using your plugin to apply some filtering to custom taxonomies. It is working fine when I select only one, but when I select multiple, instead of working with the “OR” condition, it works with AND. the url is also like this: ?content-type=guide;video (where content-type is the taxonomy, and I made sure to use different slug than the original taxonomy).

    Maybe I am doing something wrong, but can you please let me know if there is anything I can try? Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter albanotoska

    (@albanotoska)

    Sorry for the ticket, I just realized if I uncomment these two lines it works fine:

    add_filter( 'elementor/theme/posts_archive/query_posts/query_vars', 'flrt_fix_elementor_query_args' );
    add_filter( 'elementor/query/get_query_args/current_query', 'flrt_fix_elementor_query_args' );

    Let me know if there is any way to override this setting via theme_options of a custom plugin, so whenever I update the plugin, the settings won’t be overwritten.

    Plugin Support fesupportteam

    (@fesupportteam)

    HI @albanotoska

    You can place it in the functions.php filte of your theme like this.

    add_filter( 'elementor/theme/posts_archive/query_posts/query_vars', 'flrt_fix_elementor_query_args_new' );
    add_filter( 'elementor/query/get_query_args/current_query', 'flrt_fix_elementor_query_args_new' );
    function flrt_fix_elementor_query_args_new( $query_args ){
    
        if( isset( $query_args['taxonomy']  ) ){
            unset( $query_args['taxonomy'] );
            unset( $query_args['term'] );
        }
    
        return $query_args;
    }

    Best Regards – Victor

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Issues with OR multiple filters’ is closed to new replies.