Skip to content

Instantly share code, notes, and snippets.

@augustknight
Created March 12, 2012 16:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save augustknight/2022963 to your computer and use it in GitHub Desktop.
Save augustknight/2022963 to your computer and use it in GitHub Desktop.
Template page for viewing a single event from the All In One Event Calendar plugin. Simply drop this in your theme folder and you're good to go!
<?php
/**
* @package WordPress
* @subpackage Website
*/
get_header();
?>
<section id="content">
<?php if (have_posts()): ?>
<article id="post-<?php the_ID(); ?>" class="page type-page status-publish hentry post">
<section class="main">
<?php the_post(); ?>
<h1 class="title"><?php echo the_title(); ?></h1>
<br/>
<div class="entry-content">
<?php the_content(); ?>
</div>
</section>
</article>
<?php endif; ?>
</section>
<?php get_footer(); ?>
@augustknight
Copy link
Author

FYI, this was customized for the Website WordPress theme by kubasto.

I was lazy and copied the article class from a normal post page so I wouldn't have to update all of the CSS for an event page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment