[wp-trac] [WordPress Trac] #23788: get_posts(array('post_type' => 'any')) Should include custom post types in result
WordPress Trac
noreply at wordpress.org
Sat Mar 16 00:55:14 UTC 2013
#23788: get_posts(array('post_type' => 'any')) Should include custom post types in
result
--------------------------------------------+------------------------------
Reporter: keendev | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Post Types | Version: 3.5.1
Severity: minor | Resolution:
Keywords: dev-feedback reporter-feedback |
--------------------------------------------+------------------------------
Changes (by DrewAPicture):
* keywords: dev-feedback => dev-feedback reporter-feedback
Comment:
I can't reproduce this with your code in Twenty Twelve on 3.5.1.
I created a couple of test careers and with the `_post_expire_time` meta
keys of both past timestamps and empty. `get_posts()` yielded exactly what
I expected it to with `'post_type' => 'any'` set.
Is it possible you have a plugin or function that's messing with the
global query?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23788#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list