-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathauthor.php
More file actions
41 lines (35 loc) · 805 Bytes
/
Copy pathauthor.php
File metadata and controls
41 lines (35 loc) · 805 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
30
31
32
33
34
35
36
37
38
39
40
41
<?php
/**
* The template for authors' pages
*
* @author Javis <javismay@gmail.com>
* @license MIT
*/
?>
<?php
get_header();
global $wp_query;
$curauth = $wp_query->get_queried_object();
?>
<div class="box archive-meta">
<h3 class="title-meta"><?php echo $curauth->display_name; _e("'s Posts", 'quench'); ?></h3>
<?php if ( $curauth->description ) echo '<div class="desc-meta"><span class="top">◆</span>'.$curauth->description.'</div>'; ?>
</div>
<?php
if( have_posts() ){
while ( have_posts() ){
the_post();
get_template_part( 'inc/post-format/content', get_post_format() );
}
}
?>
<?php if($wp_query->max_num_pages > 1 ) { ?>
<div class="pagination clearfix">
<?php pagenavi($range = 3);?>
</div>
<?php } ?>
</div></div>
<?php
get_sidebar();
get_footer();
?>