change the order of events on all events page

WordPress Event Management, Calendars & Registration Forums Report A Bug change the order of events on all events page

This topic contains 1 reply, has 2 voices, and was last updated by  Stephen Harris 8 years, 6 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #22609

    Hi Spephen,

    I want to change the order of events on all events page (management page).

    Because I left finished event, so when I add new event, I have to go last page.

    Can I change order?

    Thank you
    TKValentino

    Taimei Kuroda
    #22614

    Hi Taimei,

    There’s a filter at the top for displaying only future events on the events admin page. You can also use the admin calendar to manage events, though what you can do directly on the calendar page is limited (at the moment).

    You can also add a menu link to ‘future events’ as per this thread: http://wp-event-organiser.com/forums/topic/future-events-first-in-admin-panel/

    Or this snippet would work by settign the filter to ‘future’ by default:

    add_action( 'wp_loaded', function() {
         if ( is_admin() && ! isset( $_GET['eo_interval'] ) ) {
             $_GET['eo_interval'] = 'future';
         }
    } );
    

    Lastly you can use the pre_get_posts hook.

    Stephen Harris
Viewing 2 posts - 1 through 2 (of 2 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.