Ejemplo n.º 1
0
        printf('<div class="taxonomy-description">%s</div>', $term_description);
    }
    ?>
			</header><!-- .page-header -->

			<?php 
    /* Start the Loop */
    while (have_posts()) {
        the_post();
        if (is_post_type_archive('jetpack-portfolio') || is_tax('jetpack-portfolio-type') || is_tax('jetpack-portfolio-tag')) {
            get_template_part('content/content', 'portfolio');
        } else {
            get_template_part('content/content', 'home');
        }
    }
    unconditional_pagination();
} else {
    get_template_part('no-results', 'archive');
}
?>
        
		</div>
		<div class="col-sm-4">
            <?php 
get_sidebar();
?>
        </div>
		</div>
   </div>
</section><!-- #primary -->
<?php 
Ejemplo n.º 2
0
if (get_query_var('paged')) {
    $unconditional_paged = get_query_var('paged');
} elseif (get_query_var('page')) {
    $unconditional_paged = get_query_var('page');
} else {
    $unconditional_paged = 1;
}
$unconditional_portfolio_count = get_option('jetpack_portfolio_posts_per_page', '10');
$args = array('post_type' => 'jetpack-portfolio', 'paged' => $unconditional_paged, 'posts_per_page' => $unconditional_portfolio_count);
$unconditional_project_query = new WP_Query($args);
if (post_type_exists('jetpack-portfolio') && $unconditional_project_query->have_posts()) {
    while ($unconditional_project_query->have_posts()) {
        $unconditional_project_query->the_post();
        get_template_part('content/content', 'portfolio');
    }
    unconditional_pagination($unconditional_project_query->max_num_pages);
    wp_reset_postdata();
} else {
    ?>

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

					<div class="page-content">
						<?php 
    if (current_user_can('publish_posts')) {