correct author forest

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

View File

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