Skip to content

Instantly share code, notes, and snippets.

Created January 21, 2012 18:15
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 anonymous/1653479 to your computer and use it in GitHub Desktop.
Save anonymous/1653479 to your computer and use it in GitHub Desktop.
Help with wordpress
<?php get_header(); ?>
<div id="page">
<div id="top"><div id="city"></div></div>
<div id="main" role="main" class="wide">
<div id="full">
<div class="center">
<div id="moveup">
<div id="main-event">
<h2><?php single_cat_title(); ?> Events</h2>
<?php
$args = array( 'post_type' => 'event', 'posts_per_page' => 50, 'post_status' => 'future', 'order' => 'ASC' );
$loop = new WP_Query( $args );
if ( have_posts() ) : while ( $loop->have_posts() ) : $loop->the_post();?>
<div class="event-item">
<div class="event-meta gold">
<div class="event-date"><?php the_time('M d'); ?></div>
<div class="event-time"><?php the_time('g:i A'); ?></div>
</div>
<div class="event-title">
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
<?php the_title(); ?>
</a>
</div>
<div class="entrytext">
<?php the_content(); ?>
</div>
</div>
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
</div>
<aside>
<?php if ( !function_exists('dynamic_sidebar')
|| !dynamic_sidebar( 'rightsidebar' ) ) : ?>
<?php endif; ?>
<?php if ( !function_exists('dynamic_sidebar')
|| !dynamic_sidebar( 'Ads' ) ) : ?>
<?php endif; ?>
</aside>
</div>
</div>
</div>
</div>
</div>
<?php get_footer(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment