C. Spencer Beggs
unread,Oct 29, 2009, 7:38:07 PM10/29/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Carrington CMS Theme Framework for WordPress
I am using WP 2.8.5 and Carrington JAM 1.3.
I want to generate a list on the home page of the latest headlines for
various categories. I used this code inside my loop:
<ul>
<?php
$args=array(
'category_name' => 'features',
'posts_per_page' => 15
);
$editorials = new WP_Query($args);
if($editorials->have_posts()) : while($editorials->have_posts()) :
$editorials->the_post();
?>
<li>
<a href="<?php the_permalink(); ?>" title="Read the article "<?
php the_title(); ?>""><?php the_title(); ?></a>
</li>
<?php endwhile; endif; ?>
</ul>
It works fine in the default theme, but in Carrington, if I set the
category, it lists 25 posts instead of 15 -- the posts are in the
right category, however. If I remove the category argument, it
displays the correct number. Anyone have any idea what's going on here?