forked from kushinauwu/OBF-Homepage-New
-
Notifications
You must be signed in to change notification settings - Fork 10
/
author.php
44 lines (33 loc) · 1.1 KB
/
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
38
39
40
41
42
43
44
<?php get_header(); ?>
<div id="content" class="narrowcolumn">
<!-- This sets the $curauth variable -->
<div class="container-fluid">
<?php
$curauth = (isset($_GET['author_name'])) ? get_user_by('slug', $author_name) : get_userdata(intval($author));
?>
<dl>
<dd>
<?php echo $curauth->user_description; ?>
</dd>
</dl>
<h2>Posts by
<?php echo $curauth->nickname; ?>:</h2>
<ul>
<!-- The Loop -->
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<li>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>">
<?php the_title(); ?></a>,
<?php the_time('d M Y'); ?> in
<?php the_category('&');?>
</li>
<?php endwhile; else: ?>
<p>
<?php _e('No posts by this author.'); ?>
</p>
<?php endif; ?>
<!-- End Loop -->
</ul>
</div>
</div>
<?php get_footer(); ?>