WP_Query With Multiple Arguments Including Category Not Working

358 views
Skip to first unread message

C. Spencer Beggs

unread,
Oct 29, 2009, 7:38:07 PM10/29/09
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 &quot;<?
php the_title(); ?>&quot;"><?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?

Alex King

unread,
Oct 29, 2009, 11:57:43 PM10/29/09
to carrington...@googlegroups.com
Please see bug report and resolution here:

http://code.google.com/p/carrington/issues/detail?id=9&can=1

C. Spencer Beggs

unread,
Nov 2, 2009, 3:41:40 PM11/2/09
to Carrington CMS Theme Framework for WordPress
Alex,

Thank you for your response. I have been using Carrington + Blueprint
CSS + jQuery + jQuery UI to develop Wordpress-based sites lately and
the combo is dynamite. I will be lurking about here to offer help to
anyone I can.

Thanks again.

Alex King

unread,
Nov 2, 2009, 4:03:39 PM11/2/09
to carrington...@googlegroups.com
Very glad to hear it, perhaps you'd like to submit some of these to
the Carrington Showcase.

--Alex

Reply all
Reply to author
Forward
0 new messages