Skip to content

Instantly share code, notes, and snippets.

@kjtolsma
Created May 8, 2013 14:01
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 kjtolsma/5540633 to your computer and use it in GitHub Desktop.
Save kjtolsma/5540633 to your computer and use it in GitHub Desktop.
Standard output for the Pronamic Events widget
<?php if ( have_posts() ) : ?>
<?php
if ( ! empty( $title ) ) {
echo $before_title . $title . $after_title;
}
?>
<ul>
<?php while ( have_posts() ) : the_post(); ?>
<li>
<a href="<?php the_permalink() ?>" title="<?php echo esc_attr( get_the_title() ? get_the_title() : get_the_ID() ); ?>"><?php if ( get_the_title() ) the_title(); else the_ID(); ?></a><br />
<?php pronamic_the_start_date(); ?> / <?php pronamic_the_end_date(); ?><br />
</li>
<?php endwhile; ?>
</ul>
<?php endif; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment