while (have_posts()) { the_post(); ?> <article id="post-<?php the_ID(); ?> " <?php post_class(); ?> > <div class="entry-content"> <?php $oneevent->page_content(); /* use this if you move the content-single-event.php else where along this file*/ //require_once('content-single-event.php'); ?> </div><!-- .entry-content --> <footer class="entry-meta"> <?php edit_post_link(__('Edit', 'twentythirteen'), '<span class="edit-link">', '</span>'); ?> </footer><!-- .entry-meta --> </article><!-- #post --> <?php } ?>