• I’d like my page to have an “upcoming events” page where the Event Calendar plugin will list events coming up in order (in the body of the upcoming events page, not in the sidebar). I would assume this is possible, but I’m having a lot of difficult figuring it out. Does anyone know how to do this?

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter robbentley

    (@robbentley)

    so far this is the one problem to have me struggling for 2 days straight, anyone have any ideas on this? the Event Calendar site says it will show on a listings page, but i can’t even get it to work in a sidebar

    Thread Starter robbentley

    (@robbentley)

    Really I’d just like to enter a blog entry, and have it appear on an “events” page in order of the event date

    You need to make a page template. Make a copy of a basic page template and add some php code to display the upcoming events -list.

    Sorry for posting code but:

    <?php
    /*
    Template Name: Page+EventCalendar
    */

    get_header();
    get_sidebar();

    echo ‘<div id=”content”>’;
    echo ‘<div class=”page”>’;

    if (have_posts()) : while (have_posts()) : the_post();

    echo ‘<h2>’; the_title(); echo ‘</h2>’;
    echo ‘<div class=”entrytext”>’;
    the_content(‘<p class=”serif”>Read the rest of this page »</p>’);
    ec3_get_events(‘365 days’);
    echo ‘</div>’;
    link_pages(‘<p>Pages: ‘, ‘</p>’, ‘number’);

    endwhile; endif;

    echo ‘</div>’; // end-of-page
    edit_post_link(‘Edit this entry.’, ‘<p class=”edit”>’, ‘</p>’);
    echo ‘< / div >’; // end-of-content

    get_footer();
    ?>

    Also make sure that you select a category in which the events are placed – and also remember to use the “start [+]” and “end [+]” buttons below the post editor, to add the start/end dates/times. When you do that, the event gets automatically listed in the chosen “eventcalendar” category. It will then show up in the event list and the calendar.

    Also make it belong to at least another category, if you want to display it as a normal post also.

    There’s one setting in the admin panel, where you can also choose to make the whole “event category” visible by default.

    It does work, and it’s easy once you learn it.

    Enjoy!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Event Calendar – can it appear on a listings page?’ is closed to new replies.