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

@@ -6,6 +6,15 @@
<h1 class="section-title__title"><?= get_the_author(); ?></h1>
</div>
<?php if (!is_paged()) {
$author_description = get_the_author_meta('description');
if (!empty($author_description)) {
echo '<div class="article-item__text">';
echo nl2br(esc_html($author_description));
echo '</div>';
}
}?>
<div class="articles-preview">
<?php
$paged = (get_query_var('paged')) ? absint(get_query_var('paged')) : 1;