Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm using the plugin called All-in-One Event Calendar, and would like to have the information of next six upcoming events to display on a specific page. I've created the page and followed the information provided on another post but this returns on the page:

Warning: Call to Ai1ec_Event::__get( 'multiday' ) is deprecated in [...]all-in-one-event-calendar/app/model/class-ai1ec-event.php on line 1137

Warning: Call to Ai1ec_Event::__get( 'start_time' ) is deprecated in [...]all-in-one-event-calendar/app/model/class-ai1ec-event.php on line 1137 9:15 am

Warning: Call to Ai1ec_Event::__get( 'timespan_html' ) is deprecated in [...]all-in-one-event-calendar/app/model/class-ai1ec-event.php on line 1137 June 30, 2013 @ 9:15 am Shoreline Library Free

The event title displays perfectly, but I don't understand why all the warning lines appear before the content. Any possible help is really appreciated.

share|improve this question
add comment

1 Answer

Figured it out, this is what I have now. Hope I help others!

        <?php while ( have_posts() ) : the_post(); ?>

            <?php $event = Ai1ec_Events_Helper::get_event($post->ID); ?>

            <?php echo '<h5><a href="'.get_permalink().'">'.get_the_title().'</a></h5>'; ?>

            <?php echo $event->get_timespan_html(); ?></br>

            <?php echo $event->venue; ?></br>

            <?php echo $event->city; ?>,

            <?php echo $event->province;?></br>

            <?php echo $event->cost; ?>

    <?php endwhile; ?><!--  End the Loop -->
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.