[wp-trac] [WordPress Trac] #38034: post__in orderby not working when passed in an array to orderby
WordPress Trac
noreply at wordpress.org
Wed Apr 19 14:01:52 UTC 2017
#38034: post__in orderby not working when passed in an array to orderby
--------------------------+-----------------------------
Reporter: kelvink | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Query | Version: 4.6
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+-----------------------------
Comment (by boonebgorges):
@thefraj `post__in` is definitely working more generally. See, for
instance, the `post__in` tests in tests/phpunit/tests/query/results.php.
In your case, you're probably not passing the proper `post_type` or
`post_status` to `WP_Query`. If you have done further debugging and
determined that it's definitely a core bug, please post your full
analysis, including post type definition and the SQL generated by your
`WP_Query` instance (and, ideally, automated tests demonstrating the
failure).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38034#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list