Support » Plugin: Event Organiser » [Plugin: Event Organiser] Event data not showing up in the loop

  • Resolved jhanse



    I have fed my events into the loop as per another post on here (through functions.php) and while they show up and the conditionals do seem to work (I can get an ‘event’ ticker next to the title to display), they don’t seem to output the relevant data.

    This is the site:
    (it’s in Slovenian but you’ll get the picture, the first post is an event)

    As you can see it’s empty after This event will take place and the category isn’t displayed either. In contrast, the single event page shows all the relevant data!

    Thanks for your help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi Jhanse,
    I’m having trouble accessing your site (I think its a problem my end). Are you trying to include events alongside regular posts?

    Yes, they do display in the loop but I had to manually specify the $post_ID as an argument for the eo functions (date, time, etc). So that I managed to correct, but the categories still don’t show.

    Here’s a print screen:

    Could you post the code you’ve added in your functions.php? Or if its a lot, link to a bit bucket?

    If the events are being displayed in the ‘main loop’, you shouldn’t need to specify the post ID. If you find you do, then you’ll also need to pass the post ID to display the event categories. If you are using eo_get_events() then declaring each post (event) as global and then resetting this afterwards will also work.

    function eo_event_loop($query){
        if( $query->is_home() && $query->is_main_query() ){
            $query->set('post_type', array('post','event',));

    This is the code in my functions.php.

    I too am having a similar problem. Since updating from 1.4.2 to 1.5.2, my events are no longer being output by the loop.

    The code in my homepage is WP_Query(array('post_type'=>'event')), yet it outputs There used to be two boxes under Upcoming Events.

    The code in taxonomy-event-category.php is the default if (have_posts()) call, yet it outputs But notice how the events do appear in the sidebar widget on that page. The sidebar widget uses eo_get_events() I believe. Is it no longer possible to use the default WP queries? If so I may just revert to the older version of this plugin and stop updating.

    Any ideas? We need to launch this site tomorrow! Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Event Organiser] Event data not showing up in the loop’ is closed to new replies.