Поставил себе шаблон. Он выводит одно сообщение на странице, хотя в админке указано 5. Подскажите как исправить?
Как я понял вот функция вывода.
<?php
$the_query = new WP_Query('cat=-'. $GLOBALS['ex_feat'] . ',-' . $GLOBALS['ex_vid'] . ',-' . $GLOBALS['ex_aside'] . '&showposts=' . get_option('woo_other_entries') . '&orderby=post_date&order=desc');
$wp_query->in_the_loop = true; // Need this for tags to work
while ($the_query->have_posts()) : $the_query->the_post(); $do_not_duplicate = $post->ID;
?>
Вот сам index.php
<?php get_header(); ?>
<?php include(TEMPLATEPATH . '/includes/featured.php'); ?>
<?php // Get Options
$main_content = get_option('woo_content');
?>
<div id="centercol">
<?php
$the_query = new WP_Query('cat=-'. $GLOBALS['ex_feat'] . ',-' . $GLOBALS['ex_vid'] . ',-' . $GLOBALS['ex_aside'] . '&showposts=' . get_option('woo_other_entries') . '&orderby=post_date&order=desc');
$wp_query->in_the_loop = true; // Need this for tags to work
while ($the_query->have_posts()) : $the_query->the_post(); $do_not_duplicate = $post->ID;
?>
<h2><a title="Permanent Link to <?php the_title(); ?>" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<div class="date-comments">
<p class="fl"><?php the_time('D, M j, Y'); ?></p>
<p><span class="fr comments"><?php comments_popup_link(__('0 Коментариев',woothemes), __('1 Коментарий',woothemes), __('% Коментариев',woothemes) ); ?></span></p>
<?php if (function_exists('tweetmeme')) echo tweetmeme(); ?>
</div>
<script type="text/javascript">socializ(encodeURIComponent('<?php the_permalink() ?>'),encodeURIComponent('<?php the_title(); ?>'))</script>
<?php if ( get_post_meta($post->ID, 'image', true) ) { ?> <!-- DISPLAYS THE IMAGE URL SPECIFIED IN THE CUSTOM FIELD -->
<img src="<?php echo bloginfo('template_url'); ?>/thumb.php?src=<?php echo get_post_meta($post->ID, "image", $single = true); ?>&h=75&w=75&zc=1&q=90" alt="<?php the_title(); ?>" class="fl" style="margin-top:5px;" />
<?php } ?>
<?php if ( $main_content == "true" ) { the_content('[...]'); } else { the_excerpt(); ?><?php } ?>
<div class="continue-tags">
<p class="fl"><a title="<?php _e('Permanent Link to',woothemes); ?> <?php the_title(); ?>" href="<?php the_permalink() ?>"><?php _e('Читать дальше...',woothemes); ?></a></p>
<p><?php the_tags('<span class="fr tags">', ', ', '</span>'); ?></p>
</div>
<?php endwhile; ?>
<div class="headlines">
<?php
$the_query = new WP_Query('cat=-'. $GLOBALS['ex_feat'] . ',-' . $GLOBALS['ex_vid'] . ',-' . $GLOBALS['ex_aside'] . '&showposts=' . get_option('woo_other_headlines') . '&offset=' . get_option('woo_other_entries') . '&orderby=post_date&order=desc');
$wp_query->in_the_loop = true; // Need this for tags to work
while ($the_query->have_posts()) : $the_query->the_post(); $do_not_duplicate = $post->ID;
?>
<!--<dl>
<dt><a title="Permanent Link to <?php the_title(); ?>" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a> <em><?php the_time('D, M j, Y'); ?></em></dt>
<dd><?php comments_popup_link(__('0 Comments',woothemes), __('1 Comment',woothemes), __('% Comments',woothemes) ); ?></dd>
</dl>-->
<?php endwhile; ?>
</div><!--/headlines-->
<div class="ar"><a href="<?php echo get_option('woo_archives'); ?>" class="more"><?php _e('Больше статей в архивах',woothemes); ?></a></div>
</div><!--/centercol-->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
За количество выводимых записей в вашем шаблоне отвечает параметр – ‘&showposts=’
Если вам нужно вывести то число записей, которое указано в админке, попробуйте вообще удалить запись showposts. из кода.
Если не поможет такой вариант, тогда пропишите так – ‘&showposts=5’
Спасибо.