[wp-trac] [WordPress Trac] #11246: Sticky Posts ignore post__not_in
WordPress Trac
wp-trac at lists.automattic.com
Tue Nov 24 11:04:14 UTC 2009
#11246: Sticky Posts ignore post__not_in
--------------------------+-------------------------------------------------
Reporter: markjaquith | Owner: ryan
Type: defect (bug) | Status: new
Priority: low | Milestone: Unassigned
Component: Query | Version: 2.9
Severity: minor | Keywords:
--------------------------+-------------------------------------------------
Comment(by scribu):
Post 12 is sticky.
In index.php, added this code:
{{{
$posts = get_posts(array('post__not_in' => array(1, 12)));
}}}
$posts doesn't contain the post with ID 12, even though it's sticky.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11246#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list