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 );?>
- <?the_title();?> + <?the_title();?>
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 @@ <?php wp_title('|', true, 'right');?><?=get_bloginfo('name')?> - + diff --git a/index.php b/index.php index 9b30cae..995f6a5 100644 --- a/index.php +++ b/index.php @@ -48,7 +48,7 @@ $nn = 0;?>
- <?the_title();?> + <?the_title();?> diff --git a/single.php b/single.php index 203e2ad..9f536ce 100644 --- a/single.php +++ b/single.php @@ -12,6 +12,7 @@ term_id; $category_link = get_category_link($category_id); + $post_id = get_the_ID(); ?>