Skip to content

Instantly share code, notes, and snippets.

@kutoi94
Last active September 14, 2019 07:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kutoi94/e86390d599ee815f7789672d0ea1dd43 to your computer and use it in GitHub Desktop.
Save kutoi94/e86390d599ee815f7789672d0ea1dd43 to your computer and use it in GitHub Desktop.
Page My Account create with MB User Profile Plugin
<?php
/*
* Template Name: My Account
*/
?>
<?php
if ( !is_user_logged_in() ) {
auth_redirect();
}
get_header();
?>
<div class="wrap">
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<?php
while ( have_posts() ) :
the_post();
get_template_part( 'template-parts/page/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.
?>
</main><!-- #main -->
</div><!-- #primary -->
</div><!-- .wrap -->
<!-- Content page here -->
<?php
get_footer();
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment