correct author forest

This commit is contained in:
argoexpert press
2025-07-30 11:53:00 +03:00
parent 6228d8ba21
commit 60037c5091

View File

@@ -25,20 +25,16 @@
<?php
$author = get_userdata(get_post_field('post_author'));
?>
<?php if (!in_category('partners')) : ?>
<?php if ( $author AND $author->display_name !== 'agroexpert.press' ) : ?>
<div class="article-author">
<div class="article-author__name">
<a href="<?= get_author_posts_url($author->ID); ?>">
<?= $author->display_name; ?></a><br>
<? if ( $author->description !== '' ):?>
<?=$author->description?>
<?endif?>
</div>
</div>
<?php endif; ?>
<?php if ( $author AND $author->display_name !== 'agroexpert.press' ) : ?>
<p class="byline">
Автор&nbsp;<span class="article-author__name">
<a href="<?= get_author_posts_url($author->ID); ?>">
<?=$author->display_name; ?></a>
</span>
</p>
<?php endif; ?>
<div class="article-single__content">
<?php
//$content = get_the_content();