Files
profile/template-parts/single/post-author.php
Andrey Kuvshinov 8fc8cbae32 add files
2025-07-09 21:21:17 +03:00

17 lines
571 B
PHP

<!--[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]-->