Enhance post cards with date, reading time, and comment count metadata
This commit is contained in:
@@ -32,15 +32,26 @@ $hero_bg = get_theme_mod( 'hero_background_image', get_template_directory_uri()
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class( 'insight-card' ); ?>>
|
||||
<?php if ( has_post_thumbnail() ) : ?>
|
||||
<div class="post-thumbnail">
|
||||
<?php the_post_thumbnail( 'large' ); ?>
|
||||
<a href="<?php the_permalink(); ?>">
|
||||
<?php the_post_thumbnail( 'large' ); ?>
|
||||
</a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<header class="entry-header">
|
||||
<div class="entry-meta">
|
||||
<?php echo get_the_category_list( ', ' ); ?>
|
||||
<span class="cat-links"><?php echo get_the_category_list( ', ' ); ?></span>
|
||||
</div>
|
||||
|
||||
<?php the_title( '<h3 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h3>' ); ?>
|
||||
|
||||
<div class="post-card-info">
|
||||
<span class="post-date"><?php echo get_the_date(); ?></span>
|
||||
<span class="dot-separator">•</span>
|
||||
<span class="reading-time"><?php echo wisdom1_reading_time(); ?></span>
|
||||
<span class="dot-separator">•</span>
|
||||
<span class="comments-count"><?php comments_number( '0 comments', '1 comment', '% comments' ); ?></span>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div class="entry-summary">
|
||||
|
||||
Reference in New Issue
Block a user