My client wants to be able to manually order events within a category archive page. With regular custom posts I would do this by changing the loop query to ‘orderby’=>’menu_order’ and get them to amend the ‘sort order’ in the post or use a post re-ordering plugin. However, this doesn’t seem to be possible with Events – any plugin I use for drag & drop reordering doesn’t work for Events.
Can you suggest a way of allowing manual reordering of events?
It will help to see that code in context, can you post that in a gist or paste bin?
Along with that, I should mention that the code in the gist only adds support for changing the menu order values within the event, so did you make sure the event posts have menu_order values set?
OK thanks, so you can remove the call to query_posts() from the template, and the add a filter function to a functions file that hooks into the pre_get_posts hook that will set the orderby for category archives.
The support post ‘Reorder events within a category archive (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.