add fix problem
This commit is contained in:
@@ -5,7 +5,7 @@ $key = 'vij_opinions';
|
||||
if (!$opinions = kuri_set($key)) {
|
||||
$opinions = get_posts( array(
|
||||
'numberposts' => 1,
|
||||
'category' => 30, // 7 - мнения
|
||||
'category' => 8, // 7 - мнения
|
||||
'orderby' => 'date',
|
||||
'order' => 'DESC',
|
||||
'include' => array(),
|
||||
@@ -25,8 +25,8 @@ if(is_array($opinions)):
|
||||
$post = $opinions[0];?>
|
||||
|
||||
<div class="left_opinion<?if ($args['subclass'] !== '') echo ' '.$args['subclass'];?>">
|
||||
<div class="left_opinion_title">мнение</div>
|
||||
<img class="left_preview" src="<?php echo get_the_post_thumbnail_url($post, 'left-thumb');?>" alt="<?=$post->post_title;?>">
|
||||
<div class="left_opinion_title"><a href="https://vetandlife.ru/category/mneniya/">мнение</a></div>
|
||||
<img class="left_preview" src="<?php echo get_the_post_thumbnail_url($post, 'fill');?>" alt="<?=$post->post_title;?>">
|
||||
<div class="left_opinion_text"><a href="<?=get_permalink($post);?>"><?=$post->post_title;?></a></div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user