Kumi
625a2f0639
Enhanced article previews with excerpts and cleaned up date rendering. Implemented option to remove authors in meta box for better user control. Improves overall usability and experience.
26 lines
No EOL
886 B
PHP
26 lines
No EOL
886 B
PHP
<?php get_header(); ?>
|
|
|
|
<!-- Article Content -->
|
|
<section class="container my-5">
|
|
<div class="row">
|
|
<div class="col-lg-8 mx-auto">
|
|
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
|
|
<h1 class="display-4"><?php the_title(); ?></h1>
|
|
<p class="text-muted">
|
|
<?php
|
|
$authors = get_post_meta(get_the_ID(), 'article_authors', true);
|
|
if (!empty($authors)) {
|
|
echo implode('; ', array_map('esc_html', $authors));
|
|
} else {
|
|
the_author();
|
|
}
|
|
?>
|
|
</p>
|
|
<?php the_content(); ?>
|
|
<?php endwhile;
|
|
endif; ?>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<?php get_footer(); ?>
|