add files
This commit is contained in:
17
template-parts/single/post-author.php
Normal file
17
template-parts/single/post-author.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<!--[single/post-author]-->
|
||||
|
||||
<?php foreach (get_coauthors() as $author ): ?>
|
||||
|
||||
<a class="publication__author" href="<?= get_author_posts_url( $author->ID, $author->user_nicename ); ?>" itemprop="author" itemscope itemtype="https://schema.org/Person">
|
||||
|
||||
<?= $author->display_name; ?>
|
||||
|
||||
<meta itemprop="name" content="<?= htmlspecialchars($author->display_name); ?>" />
|
||||
|
||||
<link itemprop="url" href="<?= get_author_posts_url( $author->ID, $author->user_nicename ); ?>" />
|
||||
|
||||
</a>
|
||||
|
||||
<?php endforeach; ?>
|
||||
|
||||
<!--[/single/post-author]-->
|
||||
Reference in New Issue
Block a user