| Server IP : 207.135.97.11 / Your IP : 172.19.0.1 Web Server : LiteSpeed System : Linux 6d372a2d2e33 5.14.0-611.24.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jan 23 11:42:43 UTC 2026 x86_64 User : nobody ( 65534) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/html/ed.net.au/wp-content/themes/evoke-dialogue/ |
Upload File : |
<?php
/**
* Archive template.
*/
if (!defined('ABSPATH')) {
exit;
}
get_header();
?>
<div class="ed-wrap">
<header class="ed-page-hero">
<span class="ed-eyebrow">Archive</span>
<h1><?php the_archive_title(); ?></h1>
<?php if (get_the_archive_description()) : ?>
<p class="ed-page-intro"><?php echo wp_kses_post(wp_strip_all_tags(get_the_archive_description())); ?></p>
<?php endif; ?>
</header>
<section class="ed-section">
<?php if (have_posts()) : ?>
<div class="ed-post-grid">
<?php while (have_posts()) : the_post(); ?>
<?php $image_markup = evoke_dialogue_post_card_image(get_the_ID(), 'medium_large'); ?>
<article class="ed-post-card">
<?php if (!empty($image_markup)) : ?>
<div class="ed-card-media">
<a href="<?php the_permalink(); ?>"><?php echo wp_kses_post($image_markup); ?></a>
</div>
<?php endif; ?>
<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
<p><?php echo esc_html(wp_trim_words(get_the_excerpt(), 22)); ?></p>
<div class="ed-post-meta"><?php echo esc_html(get_the_date('j M Y')); ?></div>
</article>
<?php endwhile; ?>
</div>
<nav class="ed-pagination" aria-label="Archive pagination">
<?php echo wp_kses_post(paginate_links(array('type' => 'plain', 'prev_text' => 'Previous', 'next_text' => 'Next'))); ?>
</nav>
<?php else : ?>
<article class="ed-card">
<h3>No entries found</h3>
<p>Try another archive or browse the latest insights.</p>
</article>
<?php endif; ?>
</section>
</div>
<?php
get_footer();