-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathloop-author.php
37 lines (37 loc) · 1.27 KB
/
loop-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
if (have_posts()):
?>
<h1>Posts by the author '<?php echo get_the_author_meta('display_name'); ?>'</h1>
<hr class="sep">
<?php
while(have_posts()):
the_post();
?>
<div class="post">
<h2><a href="<?php echo get_the_permalink(); ?>" title="<?php echo get_the_title(); ?>"><?php the_title(); ?></a></h2>
<ul class="meta_links">
<li>By <?php the_author_posts_link(); ?></li>
</ul>
<hr>
<ul class="meta_links">
<li><span class="icon icon-calender"></span> <?php the_date(); ?></li>
<li><span class="icon icon-tag"></span> <?php the_category(','); ?></li>
<li><span class="icon icon-comment"></span> <a href="<?php echo get_comments_link(); ?>" title="Comments"><?php comments_number(); ?></a></li>
</ul>
<hr class="space">
<?php
the_excerpt();
?>
<p><a href="<?php echo get_the_permalink(); ?>" class="read_more_link" title="Read more about <?php echo get_the_title(); ?>">Read More...</a></p>
<hr class="sep">
<hr class="space">
<div class="clearfix"></div>
</div>
<?php
endwhile;
else:
?>
<h1>Not search result found for query '<?php echo $query_string ?>'</h1>
<?php
endif;
?>