Support » Plugin: Event Calendar 3 for PHP 5.3 » Extension to display page with upcomming events

  • Hello there,

    i just hacked together a function to display a page with posts of upcomming events.

    to use it you have too add the following function to template_functions.php
    [Code moderated as per the Forum Rules. Please use the pastebin]

    you might want to change the HTML-part to fit your theme.

    then create a simple page-template in your current theme calling this new function:

    Template Name: Upcomming EC3
    <?php get_header(); ?>
    <div id="content">
    <h2>Upcomming Events</h2>
    <?php ec3_get_events_posts(); ?>
    <!-- end content -->
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    then create a new page, leave the content empty and select the from Attributes the newly created template (in this example it would be called “Upcomming EC3”)


Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Extension to display page with upcomming events’ is closed to new replies.