[wp-trac] [WordPress Trac] #34266: Support for ranges in WP_Query
WordPress Trac
noreply at wordpress.org
Tue Oct 13 17:38:16 UTC 2015
#34266: Support for ranges in WP_Query
-----------------------------+----------------------
Reporter: dziudek | Owner:
Type: feature request | Status: closed
Priority: normal | Milestone:
Component: Query | Version:
Severity: normal | Resolution: wontfix
Keywords: 2nd-opinion | Focuses:
-----------------------------+----------------------
Changes (by boonebgorges):
* status: new => closed
* resolution: => wontfix
* milestone: Awaiting Review =>
Comment:
I think I agree with johnbillion here. If you really need an ID range, it
can be accomplished like this:
{{{
new WP_Query( array(
'post__in' => range( $start, $end ),
) );
}}}
That's all we'd be doing internally anyway, so I don't see the benefit in
adding the `..` syntax, which we don't use anywhere else in WordPress.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34266#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list