Lodestar: Fix issue with portfolio archive pagination. Fixes: #444.

This commit is contained in:
Laurel Fulford 2019-02-08 14:54:03 -08:00
parent 35ebade4a3
commit 8020bba309
3 changed files with 5 additions and 3 deletions

View file

@ -111,7 +111,7 @@ function lodestar_infinite_scroll_render() {
wc_get_template_part( 'content', 'product' );
} else if ( is_search() ) {
get_template_part( 'components/post/content', 'search' );
} else if ( is_post_type_archive( 'jetpack-portfolio' ) ) {
} else if ( is_post_type_archive( 'jetpack-portfolio' ) || is_tax( 'jetpack-portfolio-tag' ) || is_tax( 'jetpack-portfolio-type' ) ) {
get_template_part( 'components/features/portfolio/content', 'portfolio' );
} else if ( is_post_type_archive( 'jetpack-testimonial' ) ) {
get_template_part( 'components/features/testimonials/content', 'testimonials' );

View file

@ -8,8 +8,9 @@ get_header();
$jetpack_portfolio_content = get_option( 'jetpack_portfolio_content' ); ?>
<div class="wrap">
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<main class="site-main" role="main">
<?php
if ( have_posts() ) {
@ -21,5 +22,6 @@ $jetpack_portfolio_content = get_option( 'jetpack_portfolio_content' ); ?>
</main><!-- #main -->
</div><!-- #primary -->
</div><!-- .wrap -->
<?php
get_footer();

View file

@ -10,7 +10,7 @@ $jetpack_portfolio_content = get_option( 'jetpack_portfolio_content' ); ?>
<div class="wrap">
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<main class="site-main" role="main">
<?php
if ( have_posts() ) {