[wp-testers] bug get_posts and custom post type
Philip M. Hofer (Frumph)
philip at frumph.net
Mon May 24 06:47:12 UTC 2010
clarification:
Not working on the index/home page, works fine on sub pages.
- Phil
----- Original Message -----
From: "Philip M. Hofer (Frumph)" <philip at frumph.net>
To: <wp-testers at lists.automattic.com>
Sent: Sunday, May 23, 2010 11:46 PM
Subject: [wp-testers] bug get_posts and custom post type
> $args = array('post__not_in' => array($current_post_id), 'showposts' => 5,
> 'orderby' => 'rand', 'post_type' => 'casts');
> $randomcasts = &get_posts($args);
>
> post__not_in is not being utilized with post_type as being able to
> exclude the specified post type, per the codex reference
>
> - Phil
> _______________________________________________
> wp-testers mailing list
> wp-testers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-testers
>
More information about the wp-testers
mailing list