2013-02-18 18:08:56 -05:00
|
|
|
<?php
|
|
|
|
/**
|
2013-09-20 15:34:10 -04:00
|
|
|
* The template for displaying Author archive pages
|
2013-02-18 18:08:56 -05:00
|
|
|
*
|
2019-01-09 00:09:51 -05:00
|
|
|
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
2013-02-18 18:08:56 -05:00
|
|
|
*
|
|
|
|
* @package WordPress
|
|
|
|
* @subpackage Twenty_Thirteen
|
|
|
|
* @since Twenty Thirteen 1.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
get_header(); ?>
|
|
|
|
|
|
|
|
<div id="primary" class="content-area">
|
|
|
|
<div id="content" class="site-content" role="main">
|
|
|
|
|
|
|
|
<?php if ( have_posts() ) : ?>
|
|
|
|
|
|
|
|
<?php
|
2013-10-09 16:39:09 -04:00
|
|
|
/*
|
2013-09-20 15:34:10 -04:00
|
|
|
* Queue the first post, that way we know what author
|
|
|
|
* we're dealing with (if that is the case).
|
2013-02-18 18:08:56 -05:00
|
|
|
*
|
|
|
|
* We reset this later so we can run the loop
|
|
|
|
* properly with a call to rewind_posts().
|
|
|
|
*/
|
|
|
|
the_post();
|
|
|
|
?>
|
|
|
|
|
|
|
|
<header class="archive-header">
|
2019-07-08 21:10:00 -04:00
|
|
|
<h1 class="archive-title">
|
|
|
|
<?php
|
2019-09-02 20:41:05 -04:00
|
|
|
/* translators: %s: Author display name. */
|
2019-07-08 21:10:00 -04:00
|
|
|
printf( __( 'All posts by %s', 'twentythirteen' ), '<span class="vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' );
|
|
|
|
?>
|
|
|
|
</h1>
|
2013-02-18 18:08:56 -05:00
|
|
|
</header><!-- .archive-header -->
|
|
|
|
|
|
|
|
<?php
|
2013-10-09 16:39:09 -04:00
|
|
|
/*
|
2020-01-28 19:45:18 -05:00
|
|
|
* Since we called the_post() above, we need
|
|
|
|
* to rewind the loop back to the beginning.
|
|
|
|
* That way we can run the loop properly, in full.
|
2013-02-18 18:08:56 -05:00
|
|
|
*/
|
|
|
|
rewind_posts();
|
|
|
|
?>
|
|
|
|
|
|
|
|
<?php if ( get_the_author_meta( 'description' ) ) : ?>
|
|
|
|
<?php get_template_part( 'author-bio' ); ?>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
2017-11-30 18:11:00 -05:00
|
|
|
<?php
|
2020-01-28 19:45:18 -05:00
|
|
|
// Start the loop.
|
2017-11-30 18:11:00 -05:00
|
|
|
while ( have_posts() ) :
|
|
|
|
the_post();
|
2018-08-16 21:51:36 -04:00
|
|
|
?>
|
2013-02-18 18:08:56 -05:00
|
|
|
<?php get_template_part( 'content', get_post_format() ); ?>
|
|
|
|
<?php endwhile; ?>
|
|
|
|
|
|
|
|
<?php twentythirteen_paging_nav(); ?>
|
|
|
|
|
|
|
|
<?php else : ?>
|
|
|
|
<?php get_template_part( 'content', 'none' ); ?>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
</div><!-- #content -->
|
|
|
|
</div><!-- #primary -->
|
|
|
|
|
|
|
|
<?php get_sidebar(); ?>
|
2015-04-12 17:29:32 -04:00
|
|
|
<?php get_footer(); ?>
|