Я хотел бы отображать заголовки и эскизы своих сообщений, используя этот фрагмент кода, чего я не могу сделать.
Как мне решить эту проблему?
Код
<div class="row">
<?php
if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> $featured_img_url = get_the_post_thumbnail_url(get_the_ID(),'full');
<div class="col-md-4">
<div class="card" style="width: 18rem;">
<img class="card-img-top" src="<?php the_post_thumbnail('thumbnail');?>
</div>
echo '<h5 class=" card-title "><a href=" '.get_permalink() .' ">'.get_the_title().'</a></h5 >';?>
<p class="card-text "><?php echo get_the_excerpt(); ?></p>
<a href="<?php the_permalink();?>" class="btn btn-primary"> Continue Reading »
</a>
</div>
<?php
endwhile;
else :
_e( 'Sorry, no posts matched your criteria.', 'textdomain' );
endif;?>
</div>