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