• Hi,

    The sorting override option does not appear to working with queries on queries on pages built with Elementor, using widgets such as the Posts widget to tetrieve posts or other types. Elementor has its own sorting query running on this widget, perhaps it is overriding yours or yours can’t overwrite theirs. The result is that basicly no sorting is happening related to this plug-in.

    I also tried to make a custom query and use your sorting ‘orderby’ value but I failed, perhaps you could show me how I can make a custom query using your orderby? Elementor link: https://developers.elementor.com/custom-query-filter/

Viewing 1 replies (of 1 total)
  • Plugin Author Aurovrata Venet

    (@aurovrata)

    I have never used Elementor, and I don’t have a copy to test it myself, so I cna’t help you.

    What you can do is try to debug your own setup by enabling WP_DEBUG mode in your wp-config.php file,

    
    define('WP_DEBUG', true);
    define('WP_GURUS_DEBUG', true);
    

    enabling WP_GURUS_DEBUG will print debug information on the query sorting.

    If you have enabled the above but get no information, then it means Elementor is suppressing query filters.

    perhaps you could show me how I can make a custom query using your orderby

    you could try to set the query’s ‘suppress_filters’ to false to see if it works,

    
    $query->set('suppress_filters',false);
    

    Else, this stackexchange post can help.

Viewing 1 replies (of 1 total)
  • The topic ‘Sorting override not working with Elementor’ is closed to new replies.