2013-09-02 17:21:09 -04:00
|
|
|
<?php
|
|
|
|
/**
|
2013-10-11 18:02:11 -04:00
|
|
|
* The template for displaying Author archive pages
|
2013-09-02 17:21:09 -04:00
|
|
|
*
|
2019-01-09 00:09:51 -05:00
|
|
|
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
2013-09-02 17:21:09 -04:00
|
|
|
*
|
|
|
|
* @package WordPress
|
|
|
|
* @subpackage Twenty_Fourteen
|
2013-10-11 18:02:11 -04:00
|
|
|
* @since Twenty Fourteen 1.0
|
2013-09-02 17:21:09 -04:00
|
|
|
*/
|
|
|
|
|
|
|
|
get_header(); ?>
|
|
|
|
|
|
|
|
<section id="primary" class="content-area">
|
|
|
|
<div id="content" class="site-content" role="main">
|
|
|
|
|
|
|
|
<?php if ( have_posts() ) : ?>
|
|
|
|
|
|
|
|
<header class="archive-header">
|
|
|
|
<h1 class="archive-title">
|
|
|
|
<?php
|
2013-10-11 18:02:11 -04:00
|
|
|
/*
|
|
|
|
* Queue the first post, that way we know what author
|
2013-09-02 17:21:09 -04:00
|
|
|
* we're dealing with (if that is the case).
|
|
|
|
*
|
|
|
|
* We reset this later so we can run the loop properly
|
|
|
|
* with a call to rewind_posts().
|
|
|
|
*/
|
|
|
|
the_post();
|
|
|
|
|
2019-07-08 21:10:00 -04:00
|
|
|
/* translators: %s: author display name */
|
2013-12-04 21:33:10 -05:00
|
|
|
printf( __( 'All posts by %s', 'twentyfourteen' ), get_the_author() );
|
2013-09-02 17:21:09 -04:00
|
|
|
?>
|
|
|
|
</h1>
|
2013-12-04 21:33:10 -05:00
|
|
|
<?php if ( get_the_author_meta( 'description' ) ) : ?>
|
|
|
|
<div class="author-description"><?php the_author_meta( 'description' ); ?></div>
|
|
|
|
<?php endif; ?>
|
2013-09-02 17:21:09 -04:00
|
|
|
</header><!-- .archive-header -->
|
|
|
|
|
2018-08-16 21:51:36 -04:00
|
|
|
<?php
|
2013-10-11 18:02:11 -04:00
|
|
|
/*
|
|
|
|
* Since we called the_post() above, we need to rewind
|
2013-09-02 17:21:09 -04:00
|
|
|
* the loop back to the beginning that way we can run
|
|
|
|
* the loop properly, in full.
|
|
|
|
*/
|
|
|
|
rewind_posts();
|
|
|
|
|
2013-12-03 12:06:11 -05:00
|
|
|
// Start the Loop.
|
2018-08-16 21:51:36 -04:00
|
|
|
while ( have_posts() ) :
|
|
|
|
the_post();
|
2013-09-02 17:21:09 -04:00
|
|
|
|
2018-08-16 21:51:36 -04:00
|
|
|
/*
|
|
|
|
* Include the post format-specific template for the content. If you want to
|
|
|
|
* use this in a child theme, then include a file called content-___.php
|
|
|
|
* (where ___ is the post format) and that will be used instead.
|
|
|
|
*/
|
|
|
|
get_template_part( 'content', get_post_format() );
|
2013-12-03 12:06:11 -05:00
|
|
|
|
2013-09-02 17:21:09 -04:00
|
|
|
endwhile;
|
2013-12-03 12:06:11 -05:00
|
|
|
// Previous/next page navigation.
|
2013-09-02 17:21:09 -04:00
|
|
|
twentyfourteen_paging_nav();
|
|
|
|
|
|
|
|
else :
|
2013-12-03 12:06:11 -05:00
|
|
|
// If no content, include the "No posts found" template.
|
2013-09-02 17:21:09 -04:00
|
|
|
get_template_part( 'content', 'none' );
|
|
|
|
|
|
|
|
endif;
|
2018-08-16 21:51:36 -04:00
|
|
|
?>
|
2013-09-02 17:21:09 -04:00
|
|
|
|
|
|
|
</div><!-- #content -->
|
|
|
|
</section><!-- #primary -->
|
|
|
|
|
|
|
|
<?php
|
|
|
|
get_sidebar( 'content' );
|
|
|
|
get_sidebar();
|
|
|
|
get_footer();
|