-
Notifications
You must be signed in to change notification settings - Fork 0
/
author.php
37 lines (33 loc) · 887 Bytes
/
author.php
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
<?php get_header(); ?>
<?php if (have_posts()) : ?>
<div id="page-heading">
<?php
if(isset($_GET['author_name'])) :
$curauth = get_userdatabylogin($author_name);
else :
$curauth = get_userdata(intval($author));
endif;
?>
<h1><?php _e('Posts by',''); ?>: <?php echo $curauth->nickname; ?></h1>
</div>
<!-- END page-heading -->
<div id="post" class="post clearfix">
<?php // Author Page Description - set invisible for this theme
/*
<div class="entry clearfix">
<?php echo $curauth->user_description; ?>
</div>
<!-- END entry -->
*/
?>
<?php
// get post entry
get_template_part('loop', 'entry') ?>
<?php
//get pagination
if (function_exists("pagination")) { pagination(); } ?>
</div>
<!-- END #post -->
<?php endif; ?>
<?php get_sidebar(); ?>
<?php get_footer(); ?>