function create_EventArticels() { echo '<div id="primary" class="content-area"><main id="main" class="site-main" role="main">'; $status = have_events_in_DB(); if ($status == true) { /* Start the Loop */ the_event(); radiate_paging_nav(); } else { get_template_part('content', 'none'); } echo "</main></div>"; }
<main id="main" class="site-main" role="main"> <?php $status = have_events_in_DB(); if ($status == true) { ?> <?php /* Start the Loop */ ?> <?php //while ( have_posts() ) : the_post(); ?> <?php the_event(); ?> <?php radiate_paging_nav(); ?> <?php } else { ?> <?php get_template_part('content', 'none'); ?>