WordPress.org

Ready to get started?Download WordPress

Forums

Event Calendar 3 for PHP 5.3
Extension to display page with upcomming events (3 posts)

  1. chefdelacuisine
    Member
    Posted 3 years ago #

    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:

    <?php
    /*
    Template Name: Upcomming EC3
    */
    ?>
    <?php get_header(); ?>
    <div id="content">
    <h2>Upcomming Events</h2>
    <?php ec3_get_events_posts(); ?>
    </div>
    <!-- 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")

    enjoy!

  2. I would love to see the function you've come up with but you'll need to use a Pastebin (see link above). If you wouldn't mind reposting it when you have a chance, that'd be great. Thanks for sharing this!

  3. chefdelacuisine
    Member
    Posted 3 years ago #

    sorry for ignoring the forum rules...

    here's the function: http://pastebin.com/HJWQ3sUr

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic