add files
This commit is contained in:
25
template-parts/post/cell-author.php
Normal file
25
template-parts/post/cell-author.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<!--[post/cell-author]-->
|
||||
|
||||
<?php
|
||||
|
||||
$authors = get_coauthors();
|
||||
|
||||
?>
|
||||
|
||||
<div class="article__detail">
|
||||
|
||||
<?php foreach ( $authors as $author ): ?>
|
||||
|
||||
<a class="article__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; ?>
|
||||
</div>
|
||||
|
||||
<!--[/post/cell-author]-->
|
||||
Reference in New Issue
Block a user