fix(article): add status label in article metadata

Included a "Status:" label in the article metadata section to clearly indicate the publication status. This improves readability and user experience by explicitly naming the metadata field. No functional changes to the data retrieval process.
This commit is contained in:
Kumi 2024-06-20 14:54:40 +02:00
parent 4310ea6fb8
commit 98a3faf4ed
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -19,7 +19,7 @@
<strong>DOI:</strong> <?php echo esc_html(get_post_meta(get_the_ID(), 'article_doi', true)); ?>
</p>
<p class="text-muted">
<?php
<strong>Status:</strong> <?php
$terms = get_the_terms(get_the_ID(), 'publication_status');
if (!empty($terms) && !is_wp_error($terms)) {
$term_list = array();