Avoid changing menu query with suppress_filters => false

I recently had to change qTranslate for qTranslate X since the former is not being updated. This broke my menu and after searching I found it was because qTranslate X sets suppress_filters to false.

I happen to have posts_join_paged, posts_where and posts_orderby filters in my functions.php and this is breaking my menu.

Is there a condition I could use in those filters to avoid affecting any menus?

I've tried $query-is_main_query() inside my filters but I guess menu queries are main queries?

Thanks.


EDIT

Example of one of my filters

 function jlb_order_products( $orderby, $query )
 {

     if( !$query-is_main_query()  ( !is_tax( 'collection' ) || is_page_template( 'template-vendeur.php' ) ) )
         return $orderby;

     $orderby = "SUBSTRING( wp_postmeta.meta_value, 22, 14 ) ASC";

     return $orderby;

 }
 add_filter( 'posts_orderby', 'jlb_order_products', 10, 2 );

Topic posts-where get-posts filters menus Wordpress

Category Web

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.