diff --git a/rebalance/portfolio-page.php b/rebalance/portfolio-page.php index b75a259d8..22171f5c9 100644 --- a/rebalance/portfolio-page.php +++ b/rebalance/portfolio-page.php @@ -15,74 +15,94 @@ get_header(); ?>
+ // if password is required for this page, let's use the_content() to display the password form. + if ( post_password_required() ) : + the_content(); -
+ else : - + +
+ + query( array( - 'post_type' => 'jetpack-portfolio', - 'paged' => $paged, - 'posts_per_page' => $posts_per_page, - 'post__not_in' => $featured_ids - ) ); ?> + $temp = null; + $project_query = $temp; + $project_query = new WP_Query(); + $project_query->query( + array( + 'post_type' => 'jetpack-portfolio', + 'paged' => $paged, + 'posts_per_page' => $posts_per_page, + 'post__not_in' => $featured_ids, + ) + ); + ?> - have_posts() ) : ?> + have_posts() ) : ?> -
- - - have_posts() ) : $project_query->the_post(); ?> +
+ + while ( $project_query->have_posts() ) : + $project_query->the_post(); + ?> - + -
+ - max_num_pages ); ?> +
- + max_num_pages ); ?> - + - + - + - + -
+ + +
+ +