WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: The Events Calendar] Display the events in front page (9 posts)

  1. enseignement
    Member
    Posted 4 years ago #

    Is it possible to display the events list / calendar as a front page in the blog ?
    Thanks for your help,

    http://wordpress.org/extend/plugins/the-events-calendar/

  2. Shane Pearlman
    Modern Tribe
    Posted 4 years ago #

    Sure, though it might take some skill. Simply copy the templates as a starting point, take a good long look at the documentation (http://wordpress.org/extend/plugins/the-events-calendar/other_notes/) as you will need it and rebuild your home page.

    Now if you are asking if we can make that a feature? Perhaps, but I think we need to tackle some other things like ical, reoccuring events... first.

  3. enseignement
    Member
    Posted 4 years ago #

  4. Shane Pearlman
    Modern Tribe
    Posted 4 years ago #

    seems like an interesting approach. let us know how it works.

    hi from panama

  5. ckandl
    Member
    Posted 4 years ago #

    I've been scratching my head over the weekend trying to figure out how to get this to work. I'd like to display a list of upcoming events on my home page.

    When I look into the list.php file, I can't see how you are actually getting posts for the Events category only in your loop. Is there something going on in the global variable ($spEvents) I am not catching? I thought that was just for CSS and JS stuff but I could be wrong..

    Anyway, I can obviously do a loop (via the_post()) with a query for the Events category to loop through that category only.. but then I get listings for events that have past already too.

    When I try with your get_events() loop, all I get is thousands of listings that just have the title "Home" and link to the home page, no events at all.

    Any suggestions?

    Thank you! Otherwise, this is looking to be the most promising events plugin out there! In the future I'd like to work on a version with the events marked up using Microformats classes, but for now I just need to get a project done.

  6. ckandl
    Member
    Posted 4 years ago #

    Let me add a little bit more information:

    I am using a custom template for my Home page, which is set to be used in the page settings. In the reading preferences for wordpress, I have my front page displays set to that Home page.

    The custom template lives up in the root of the themes folder, not in the /events folder I created to hold my list.php, gridview.php and single.php files (as wordpress will not let me use custom templates in that folder for pages).

    Thanks again.

  7. ckandl
    Member
    Posted 4 years ago #

    OK, This is a bit of a hack I think but, here's how I was able to display the upcoming events on my home page:

    <?php query_posts($query_string . '&category_name=events'); ?>
    	<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    		<?php if(the_event_start_date(null, false, mdY) >= date(mdY)) : ?>
    		<li class="event">
    			<?php if ( is_new_event_day() ) : ?><h4 class="event-day"><?php echo the_event_start_date( null, false ); ?></h4><?php endif; ?>
    			<div class="event-content">
    				<?php the_title('<h2 class="event-title"><a href="' . get_permalink() . '" title="' . the_title_attribute('echo=0') . '" rel="bookmark">', '</a></h2>'); ?>
    				<?php the_excerpt() ?>
    			</div>
    		</li>
    	<?php endif; ?>
    <?php endwhile; else: ?>
    	<p>No Events</p>
    <?php endif; ?>
  8. James Mehorter
    Member
    Posted 4 years ago #

    ckandl: I just installed the plugin for the first time, and have many questions so far.. BUT I did notice there is a widget with this plugin to display a list of events in a sidebar, which might help you.

  9. ckandl
    Member
    Posted 4 years ago #

    Thanks, I saw the widget but I didn't want it in the sidebar. I also wanted more control over the formatting.

Topic Closed

This topic has been closed to new replies.

About this Topic