correct author forest
This commit is contained in:
@@ -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' ) : ?>
|
||||||
<div class="article-author">
|
<p class="byline">
|
||||||
<div class="article-author__name">
|
Автор <span class="article-author__name">
|
||||||
<a href="<?= get_author_posts_url($author->ID); ?>">
|
<a href="<?= get_author_posts_url($author->ID); ?>">
|
||||||
<?= $author->display_name; ?></a><br>
|
<?=$author->display_name; ?></a>
|
||||||
<? if ( $author->description !== '' ):?>
|
</span>
|
||||||
<?=$author->description?>
|
</p>
|
||||||
<?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();
|
||||||
|
|||||||
Reference in New Issue
Block a user