/* Start the Loop */while (have_posts()): the_post(); if (in_category('missioneries')) { get_template_part('partials/post/content', 'missioneries'); } elseif (is_singular('ptestimonies')) { get_template_part('partials/post/content', 'testimony'); } elseif (is_singular('cmevents')) { get_template_part('partials/post/content', 'events'); } elseif (is_singular('opportunity')) { get_template_part('partials/post/content', 'opportunity'); } elseif (is_singular('bible-study-books')) { get_template_part('partials/post/content', 'books'); } else { get_template_part('partials/post/content'); } // If comments are open or we have at least one comment, load up the comment template. if (comments_open() || get_comments_number()): comments_template(); endif; setPostViews(get_the_ID()); endwhile; // End of the loop. ?>