WQP 360 Posted December 23, 2013 Report Share Posted December 23, 2013 Имеется в шаблоне код: <div class="poslidniye">Последние материалы</div> <?php $the_query = new WP_Query(array( 'showposts' => 2, 'post__not_in' => get_option("sticky_posts"), )); ?> <?php while ($the_query -> have_posts()) : $the_query -> the_post(); ?> <div class="col span_1_of_2"> <article class="recent"> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> <?php echo content(50); ?><div class="thumbs-more-link"><a href="<?php the_permalink() ?>"> Читать дальше...</a></div> </article> </div> Но выводит две новости, но отрегулировать их я не могу. Как изменить данный код. В wordpress начал работать только сегодня.. Проблема решена! Закройте тему! Link to post Share on other sites
Recommended Posts