get_template_part('loop-header'); if (have_posts()) : get_template_part('loop-actions'); get_template_part('loop-content'); get_template_part('loop-nav'); else : get_template_part('loop-error'); endif; ?>