[wp-trac] [WordPress Trac] #33065: Allow for querying by `post_name__in`
WordPress Trac
noreply at wordpress.org
Thu Aug 20 08:19:35 UTC 2015
#33065: Allow for querying by `post_name__in`
---------------------------------+---------------------------
Reporter: dd32 | Owner: boonebgorges
Type: enhancement | Status: closed
Priority: normal | Milestone: 4.4
Component: Query | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch 4.4-early | Focuses:
---------------------------------+---------------------------
Comment (by dd32):
`post_name__in` matches a) The other `name` parameter, and b) the database
column it's querying. You also refer to `$post->post_name` not
`$post->slug`.
Similarly, Taxonomies are querying by `slug` as that's what their DB
column is, and `$term->slug`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33065#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list