Support » Plugin: Event Organiser » Admin page sees future events by default?

  • Resolved andrebalza


    Very easy to explain, very difficult to find useful code..
    I´m on the wp-admin/edit.php?post_type=event and I would like to have by default the dropdown option “future events” selected, so I can see just the upcoming events list and disregard the expired ones (which I have to mantain as archive.)

    Any suggestions?
    best, Andrea

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Stephen Harris


    I’ve not had a chance to look into the best way of doing it, but ultimately it just involves changing the event tab link to include &eo_interval=future.

    I think you might need to handle the global $menus. This plug-in would probably allow you to do it without any code:

    Or this article may be of help.

    Since somebody could be interested, here’s the code I used (in functions.php), if you don’t want to use a plugin just for this. The future course should now be default choice on the wp sidebar.

    //adds a event manager submenu page to show future courses
    $parent_slug = "edit.php?post_type=event" ;
    $page_title = "Future courses" ;
    $menu_title = "Future courses" ;
    $capability = "manage_options" ;
    $menu_slug = "edit.php?post_type=event&eo_interval=future" ;
    add_submenu_page( $parent_slug, $page_title, $menu_title, $capability, $menu_slug, $function );

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Admin page sees future events by default?’ is closed to new replies.