new format author and date

This commit is contained in:
argoexpert press
2025-07-25 21:05:36 +03:00
parent 6fab76bf4b
commit 3207928a5c
4 changed files with 34 additions and 16 deletions

View File

@@ -13,8 +13,9 @@
<?php
$formatted_date = format_event_date();
?>
<?= $formatted_date; ?>
<time datetime="<?php echo get_the_date('c'); ?>">
<?= $formatted_date; ?>
</time>
<? endif; ?>
</div>
<?php if (!in_category('partners')) : ?>
@@ -29,15 +30,12 @@
<?php if (!in_category('partners')) : ?>
<?php if ( $author AND $author->display_name !== 'agroexpert.press' AND $author->display_name !== 'Анна Купровская') : ?>
<div class="article-author">
<div class="article-author__name">
<p class="byline">
Автор&nbsp;<span 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>
<?=$author->display_name; ?></a>
</span>
</p>
<?php endif; ?>
<?php endif; ?>
<div class="article-single__content">