Mini Shell
<div class="col-md-4">
<article id="post-<?php the_ID(); ?>" <?php post_class('grid-item'); ?>>
<?php
if ( has_post_thumbnail() ) {
$thumb_id = get_post_thumbnail_id();
$thumb_url = wp_get_attachment_image_src($thumb_id,'500x311', true);
echo '<img src="' . $thumb_url[0] . '" class="img-fluid" />';
}
?>
<div class="entry-header">
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
<div class="entry-meta">
<?php
if ( 'post' === get_post_type() ) :
?>
<div class="entry-meta">
Publicado em <?php echo get_the_date( get_option( 'date_format' ) ); ?> por <?php the_author(); ?>.
</div><!-- .entry-meta -->
<?php endif; ?>
</div><!-- .entry-meta -->
</div><!-- .entry-header -->
<div class="entry-content">
<?php the_excerpt(); ?>
</div><!-- .entry-content -->
<footer class="entry-footer">
<a href="<?php the_permalink(); ?>">Leia mais</a>
</footer><!-- .entry-footer -->
</article>
</div>
Zerion Mini Shell 1.0