diff --git a/blocks/moread.php b/blocks/moread.php index a566b18..ab05ad1 100644 --- a/blocks/moread.php +++ b/blocks/moread.php @@ -10,12 +10,13 @@ $posts = get_posts( array( 'meta_key' => '', 'meta_value' =>'', 'post_type' => 'post', + 'post__not_in' => array($post_id), 'meta_query' => array( array( 'key' => '_thumbnail_id', //'compare' => 'EXISTS' ) - ), + ), 'suppress_filters' => true, // подавление работы фильтров изменения SQL запроса ) ); @@ -30,7 +31,7 @@ if( $posts ):?> setup_postdata( $post );?>
diff --git a/blocks/yets.php b/blocks/yets.php index 5903616..adbd0be 100644 --- a/blocks/yets.php +++ b/blocks/yets.php @@ -8,6 +8,7 @@ 'meta_key' => '', 'meta_value' =>'', 'post_type' => 'post', + 'post__not_in' => array($post_id), 'suppress_filters' => true, // подавление работы фильтров изменения SQL запроса ) ); diff --git a/header.php b/header.php index 82acb90..0350e80 100644 --- a/header.php +++ b/header.php @@ -4,7 +4,7 @@