-
Notifications
You must be signed in to change notification settings - Fork 1
/
author.php
36 lines (29 loc) · 904 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
<?php get_header(); ?>
<section id='article-list'>
<header class='heading yellow'>
<?php $author_id = get_query_var('author'); ?>
<h2>Auteur : <?php the_author_meta('display_name', $author_id); ?></h2>
<a class='feed' href='<?php echo get_author_feed_link(
$author_id ); ?>'>
<img src='<?php echo get_template_directory_uri(); ?>/images/rss-black.png' />
</a>
</header>
<!-- liste des pages -->
<?php revenudebase_pagination(); ?>
<?php
if(have_posts()) {
while(have_posts()) {
the_post();
$format = get_post_format( $post->ID );
if ( "" == $format ) {
$format = "archive";
}
get_template_part( 'content', $format );
}
} else { ?>
Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.
<?php } ?>
<!-- liste des pages -->
<?php revenudebase_pagination(); ?>
</section> <!-- #article-list -->
<?php get_footer(); ?>