'; do_action( 'upstudy_before_content' ); echo '
'; echo '
'; while ( have_posts() ) : the_post(); get_template_part( 'template-parts/content', 'page' ); // If comments are open or we have at least one comment, load up the comment template. if ( comments_open() || get_comments_number() ) : comments_template(); endif; endwhile; // End of the loop. echo '
'; echo '
'; $page_layout = get_post_meta( get_the_ID(), '_upstudy_page_container', true ); $content_type = get_post_meta( get_the_ID(), '_upstudy_page_content_layout', true ); if ( 'boxed' === $page_layout && 'no-sidebar' !== $content_type ) : get_sidebar(); endif; do_action( 'upstudy_after_content' ); echo ''; get_footer();