-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathauthor.php
More file actions
29 lines (20 loc) · 997 Bytes
/
author.php
File metadata and controls
29 lines (20 loc) · 997 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php get_header();
?>
<div id="content" class="site-content" role="main">
<?php if ( have_posts() ) { ?>
<header class="archive-header">
<h1 class="archive-title"><?php printf( __( 'All posts by %s', ZEETEXTDOMAIN ), '<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>
</header><!-- .archive-header -->
<?php if ( get_the_author_meta( 'description' ) ) { ?>
<?php get_template_part( 'author-bio' ); ?>
<?php } ?>
<?php /* The loop */ ?>
<?php while ( have_posts() ) { the_post(); ?>
<?php get_template_part( 'post-templates/content', get_post_format() ); ?>
<?php } ?>
<?php echo zee_pagination(); ?>
<?php } else { ?>
<?php get_template_part( 'post-templates/content', 'none' ); ?>
<?php } ?>
</div><!-- #content -->
<?php get_footer();