Before the recent major upgrade, I was able to sort Events on an Event Category page using the following snippets (which I believe your support team provided):
// Add "Menu Order" support to the Event Espresso "espresso_events" custom post type
add_filter( 'FHEE__EE_Register_CPTs__get_CPTs__cpts', 'ee_modify_page_attributes_of_event_espresso_cpt' );
function ee_modify_page_attributes_of_event_espresso_cpt( $cpt_registry_array ) {
if ( isset( $cpt_registry_array['espresso_events'] ) ) {
$cpt_registry_array['espresso_events']['args']['supports'] = array(
'title',
'editor',
'author',
'thumbnail',
'excerpt',
'custom-fields',
'comments',
'page-attributes'
);
}
return $cpt_registry_array;
}
// Set the query orderby for the event category archives
function order_espresso_event_categories( $query ) {
$query->set( 'orderby', 'menu_order' );
$query->set( 'order', 'ASC' );
return $query;
}
But now, after the update, the “Event Attributes” meta box is missing from the Event edit pages. Is there something I need to revise in the code?
But, by this do you mean the WP classic editor plugin or EE ‘legacy editor’ option within EE -> Events -> Defautl Settings?
Viewing 4 reply threads
The support post ‘Sort events by "menu order"’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.