Блог
Вывод цикла query_posts с массивом параметров
<?php
$args = array(
'post_type' => 'post',
'post_status' => 'publish',
'category__not_in' => '1',
'posts_per_page' => 12,
'paged' => get_query_var('paged')
);
?>
<?php if ( have_posts() ) : query_posts( $args );
while ( have_posts() ) : the_post() ?>
<?php the_permalink()?>
<?php the_post_thumbnail()?>
<?php the_title(); ?>
<?php endwhile; ?>
<!-- post navigation -->
<div class="paginate-box">
<?php echo paginate_links(); ?>
</div>
<?php else: ?>
<!-- no posts found -->
<?php endif; ?> 0 комментариев
Старые