How to use template field in the Event Organiser plugin widget

The template field allows you to enter what will appear on the event list widget. It accepts various place holders (you can see the documentation here – the template can be used for the [eo_events] shortcode too). One of the place-holders is %start{date-format}{time-format}% which outputs the start date/time of an event with the specified date … Read more

Get the categorie name of Event Organiser plugin [closed]

Okay I found the solution. A view in the mySQL table helped to understand how the Event Organiser plugin is using WordPress. The Event Categories a just normal categories with the taxonomy event-category. The only function needed is get_term_by(). // Get term by slug ”test-cat” in event-category taxonomy. $cat = get_term_by(‘slug’, $eo_event_loop->query[‘event-category’], ‘event-category’); echo $cat->name; … Read more

Event Organiser breaks the theme [closed]

Your events page has: <div id=”primary”> <div id=”content” role=”main”> <article id=”post-4765″ class=”post-4765 event type-event status-publish hentry”> <header class=”entry-header”> Your home page has: <div class=”container_6″> <div id=”main” class=”site-main clearfix”> <div id=”primary” class=”content-area grid_4″> <div id=”content” class=”site-content” role=”main”> <article id=”post-4684″ class=”post-4684 post type-post status-publish format-standard hentry category-discus tag-robert-harting”> <header class=”entry-header”> To get consistent formatting you need consistent … Read more

Short code for Venues

There aren’t currently any shortcodes for venue information (address, postcode, other meta etc). However, you can copy the single-event.php template (find it in the templates directory of the plug-in) into your theme and edit it there to include venue information via provided template functions: Available functions When used inside the loop, you don’t need to … Read more

How to use get_categories() with Event Organiser plugin

Event categories are terms in a custom taxonomy, ‘event-category’, so you should use get_terms instead: //Args for which terms to retrieve $args = array(‘type’=> ‘post’, ‘order’ => ‘ASC’, ‘hide_empty’ => 1 ); //Array of taxonomies from which to collect the terms $taxonomies = array(‘event-category’); //Get the terms $terms = get_terms( $taxonomies, $args); //loop through the … Read more