add imgurl
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user