Example #1
0
        ?>

				<?php 
        /* Include the Post-Format-specific template for the content.
         * If you want to override this in a child theme, then include a file
         * called content-___.php (where ___ is the Post Format name) and that will be used instead.
         */
        get_template_part('content', get_post_format());
        ?>

			<?php 
    }
    ?>

			<?php 
    sketch_paging_nav();
    ?>

		<?php 
} else {
    ?>

			<?php 
    get_template_part('content', 'none');
    ?>

		<?php 
}
?>

		</main><!-- #main -->
			<header class="page-header">
				<h1 class="page-title">
					<?php _e( 'Portfolio', 'sketch' ); ?>
				</h1>
			</header><!-- .page-header -->

			<?php /* Start the Loop */ ?>
			
			<div class="portfolio-projects">

				<?php while ( have_posts() ) : the_post(); ?>

					<?php get_template_part( 'content', 'portfolio' ); ?>

				<?php endwhile; ?>
				
				<?php sketch_paging_nav(); ?>

			</div><!-- .projects -->

		<?php else : ?>

			<?php get_template_part( 'content', 'none' ); ?>

		<?php endif; ?>

		</main><!-- #main -->
	</section><!-- #primary -->

<?php get_footer(); ?>
if ($project_query->have_posts()) {
    ?>

			<div class="projects clear">

			<?php 
    while ($project_query->have_posts()) {
        $project_query->the_post();
        get_template_part('content', 'portfolio');
    }
    ?>

			</div><!-- .projects -->

			<?php 
    sketch_paging_nav($project_query->max_num_pages);
    wp_reset_postdata();
    ?>

			<?php 
} else {
    ?>

				<section class="no-results not-found">
					<header class="page-header">
						<h1 class="page-title"><?php 
    _e('No Project Found', 'sketch');
    ?>
</h1>
					</header><!-- .page-header -->