<?
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$args = array( 'posts_per_page' => 10, 'category_name' => 'statji', 'paged' => $paged,'post_type' => 'post' );
$postslist = new WP_Query( $args );
if ( $postslist->have_posts() ) :
while ( $postslist->have_posts() ) : $postslist->the_post();
?>
<div class="articles-list__item">
<?php echo get_the_post_thumbnail( $id->ID, 'full' ); ?><br>
<a class="articles-list__item-title" href="<? the_permalink($postslist->post->ID); ?>"><?= $postslist->post->post_title; ?></a>
<p class="articles-list__item-text"><? the_field('desc_article', $postslist->ID); ?></p>
<a class="btn-main white lg" href="<? the_permalink($postslist->post->ID); ?>">ПОДРОБНЕЕ</a>
</div>
<?
endwhile;
// next_posts_link( 'Older Entries', $postslist->max_num_pages );
// previous_posts_link( 'Next Entries »' );
wp_reset_postdata();
endif;
?>
<?php
if (is_single(3549) ) {
echo do_shortcode('[contact-form-7 id="3579" title="Заказать звонок"]'); // вместо do_shortcode('[contact-form-7 id="3579" title="Заказать звонок"]'); вставляете мойстиль2 в одинарных кавычках ''
} else {
echo do_shortcode('[contact-form-7 id="220" title="Заказать звонок"]'); // вместо do_shortcode('[contact-form-7 id="220" title="Заказать звонок"]'); вставляете мойстиль1 в одинарных кавычках ''
}?>
<?php if( $paged != 0 ) { ?>
<!-- здесь выводим первый цикл, где вставляем в posts_per_page 15 постов-->
<?php } else { ?>
<!-- здесь выводим второй цикл, где вставляем в posts_per_page 10 постов-->
<?php } ?>
<?php
$post = $wp_query->post;
if (in_category('news')) { //slug категории
include(TEMPLATEPATH.'/single-news.php');
}
elseif (in_category('individualnyj')) { //slug категории
include(TEMPLATEPATH.'/single-individualnyj.php');
}
else {
include(TEMPLATEPATH.'/single-default.php');
}
?>
.kartinka-test {
border-radius: 38px;
margin: 30px 0 0 30px;
}
.ramka-test {
border-radius: 38px;
border: 1px solid red;
height 300px;
z-index: 2;
}
.ramka-obekt {
width: 720px;
height: 400px;
}
.child {
position: absolute;
}
.parent {
position: relative;
}
<div class="parent"><div class="ramka-obekt ramka-test child"></div>
<img class="kartinka-test child" src="здесь ссылка на картинку"/></div>
то почему яндекс может не обнаруживать его?