correct author forest
This commit is contained in:
@@ -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">
|
||||
Автор <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();
|
||||
|
||||
Reference in New Issue
Block a user