Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Rita Kikani

    (@kikanirita)

    Hi @thomasfrenken ,

    We do not have this feature in our current version, But you can achieve this functionality using our plugin hooks. For that, you need to add below code in your theme functions.php file.

    //set query args for current, upcoming and past event tab in single organizer page event listing part
    function theme_name_custom_orderby_query_args( $query_args ) {
        $query_args[ 'meta_key' ] = '_event_start_date'; //here you can change your meta key
        $query_args[ 'orderby' ] = 'meta_value title';
        $query_args[ 'order' ] = 'DESC'; //here you can change order 
        return $query_args;
    }
     
    add_filter( 'wpem_single_organizer_current_event_listing_query_args', 'theme_name_custom_orderby_query_args', 99 );
    add_filter( 'wpem_single_organizer_upcoming_event_listing_query_args', 'theme_name_custom_orderby_query_args', 99 );
    add_filter( 'wpem_single_organizer_past_event_listing_query_args', 'theme_name_custom_orderby_query_args', 99 );

    I hope that this will help to resolve your issue. If you have any other query then please feel free to ask, we will guide you and help you to resolve your query.

    Thank you.

    • This reply was modified 1 year, 3 months ago by Rita Kikani.
    Thread Starter Thomas Frenken

    (@thomasfrenken)

    Hi Rita,

    This code snippet works perfect. Thank you very much for your fast and qualified help. I really appreciate this expertise.

    Have a great day, Thomas Frenken

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Event Order on Event organizers page’ is closed to new replies.