Skip to content

Instantly share code, notes, and snippets.

Created June 27, 2016 19:21
What would you like to do?
<h1 class"page-title">
<?php esc_html_e( 'Events', 'textdomain' ); ?>
<?php if ( have_posts() ) : ?>
<ul class="events">
<?php while ( have_posts() ) : the_post(); ?>
<li class="event">
<h2 class="event-title">
<?php the_title(); ?>
<span class="event-countdown" data-date="<?php echo esc_attr( pronamic_get_the_start_date( 'Y/m/d H:i' ) ); ?>"></span>
<div class="event-content">
<?php the_excerpt(); ?>
<?php endwhile; ?>
<?php endif; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment