Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.