[wp-testers] possible query_post bug?
ProDevStudio
prodevstudio at gmail.com
Tue May 20 11:29:45 GMT 2008
Hey Stefano,
only reason I can think of it not working is because you have not specified
what to order on.
from the doc:
query_posts(array('category__and'=>array(1,3),'showposts'=>2,'orderby'=>title,'order'=>DESC));
the order parameter need to be used with the orderby parameter.
Try this:
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
query_posts("paged={$paged}&cat=-4&orderby=date&order=desc"); ?>
Hope this helps!
On Tue, May 20, 2008 at 9:55 AM, Stefano Aglietti <steagl4ml at gmail.com>
wrote:
> On Tue, 20 May 2008 08:34:41 +0100, ProDevStudio
> <prodevstudio at gmail.com> wrote:
>
> >You are aware that this will not show any entry item from you category
> with
> >id 4.
>
> I know it... obviously... the user want to show all post but not that
> are in category 4 :)
>
> It's the order directive that doesn't works... the test was done on
> blogs with posts in various categories...
>
> --
>
> Stefano Aglietti - StallonIt on IRCnet - ICQ#: 2078431
> Email: steve at 40annibuttati.it steagl at people.it
> Sites: http://www.40annibuttati.it (personal blog)
> http://www.wordpress-it.it (WordPress Italia)
> _______________________________________________
> wp-testers mailing list
> wp-testers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-testers
>
--
Azizur Rahman
ProDevStudio
<a href="http://feeds.feedburner.com/fridaykhutbah"><img src="
http://feeds.feedburner.com/fridaykhutbah.gif" style="border:0" alt="Friday
Khutbah"/></a>
More information about the wp-testers
mailing list