get(); // fullwidth wrap open if ( $config->get( 'full_width' ) ) { echo '
'; } // masonry container open echo '
'; ////////////////////// // Custom loop // ////////////////////// if ( function_exists( 'presscore_mod_albums_get_photos' ) ) { $page_query = presscore_mod_albums_get_photos(); if ( $page_query->have_posts() ): while( $page_query->have_posts() ): $page_query->the_post(); presscore_get_template_part( 'mod_albums', 'photo-masonry/photo' ); endwhile; wp_reset_postdata(); endif; } // masonry container close echo '
'; // fullwidth wrap close if ( $config->get( 'full_width' ) ) { echo '
'; } ///////////////////// // Pagination // ///////////////////// presscore_complex_pagination( $page_query ); // restore config $config->reset( $config_backup ); } do_action( 'presscore_after_loop' ); endwhile; endif; // end of main loop ?>