wasmo-theme/author.php

34 lines
819 B
PHP
Raw Normal View History

<?php
/**
* Template Name: Profile
*
* The template for displaying all profiles in a directory
*
* @subpackage wasmo
* @since 1.0.0
*/
get_header();
?>
<section id="primary" class="content-area">
<main id="main" class="site-main">
<article class="entry user-profile" itemprop="mainEntity" itemtype="https://schema.org/Person" itemscope>
2019-03-11 22:09:37 +00:00
<div class="entry-content">
2019-03-11 22:09:37 +00:00
<?php
$curauth = ( get_query_var('author_name') ) ? get_user_by( 'slug', get_query_var( 'author_name' ) ) : get_userdata( get_query_var( 'author' ) );
2019-03-11 22:09:37 +00:00
$userid = $curauth->ID;
?>
2019-03-11 22:09:37 +00:00
<?php set_query_var( 'userid', $userid ); ?>
<?php get_template_part( 'template-parts/content/content', 'user' ); ?>
2019-03-11 22:09:37 +00:00
</div>
</article>
</main><!-- #main -->
</section><!-- #primary -->
<?php
2019-03-14 12:33:15 +00:00
get_footer();