-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathauthor.php
36 lines (33 loc) · 1.04 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
<?php
/**
* 著者アーカイブページ用テンプレート
*/
get_header();
$author_id = get_queried_object_id();
$author_data = get_userdata( $author_id );
?>
<main <?php Arkhe::main_attrs(); ?>>
<div <?php Arkhe::main_body_attrs(); ?>>
<?php do_action( 'arkhe_start_author_main', $author_id ); ?>
<div class="p-archive__title c-pageTitle">
<h1 class="c-pageTitle__main"><?php echo esc_html( $author_data->display_name ); ?></h1>
</div>
<?php
// 著者情報
Arkhe::get_part( 'other/author_box', array( 'author_id' => $author_id ) );
// 投稿リスト前フック
do_action( 'arkhe_before_author_post_list', $author_id );
// 投稿リスト
Arkhe::get_part( 'post_list/main_query', array(
'list_type' => apply_filters( 'arkhe_list_type_on_author', ARKHE_LIST_TYPE, $author_id ),
) );
// ページャー
the_posts_pagination( array(
'mid_size' => 2,
'screen_reader_text' => null,
) );
?>
<?php do_action( 'arkhe_end_author_main', $author_id ); ?>
</div>
</main>
<?php get_footer(); ?>