add imgurl

This commit is contained in:
2022-10-30 01:46:41 +03:00
parent a5263b7385
commit d3d90f55c9
7 changed files with 24 additions and 100 deletions

View File

@@ -33,7 +33,8 @@ if( $posts ):
setup_postdata( $post );?>
<div class="moread_card" id="moread_<?=$nr?>">
<img src="<?php echo get_the_post_thumbnail_url($post);?>" alt="<?the_title();?>">
<?$imgurl = IMGSERVER.'news/512x340/'.str_replace('https://vetandlife.ru/wp-content/uploads/', '', get_the_post_thumbnail_url($post, 'full'))?>
<img src="<?php echo $imgurl;?>" alt="<?the_title();?>">
<div class="moread_title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></div>
<div class="moread_date"><?the_time('j F Y, G:i');?></div>
</div>