Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jeroen Schmit

    (@slimndap)

    That would require some coding in your theme’s functions.php. Is that an option for you?

    Thread Starter Sjoerd van Heummen

    (@welovetraffic)

    Thx for your fast reply.
    Some coding in functions.php would be no problem, could you guide me a bit in the right direction?
    thx!

    Plugin Author Jeroen Schmit

    (@slimndap)

    You need to use the pre_get_posts action to change the sorting order of the query. Something like:

    add_action( 'pre_get_posts', 'change_events_order' );
    
    function change_events_order( $query ) {
      if ($query->get('post_type') == WPT_Event::post_type_name) {
        $query->set( 'order', 'ASC' );
      }
    }

    I didn’t test the code above, but it should get you started.

    Thread Starter Sjoerd van Heummen

    (@welovetraffic)

    Thanks Jeroen! I’ll dive in this weekend.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Reverse eventlist’ is closed to new replies.