Opened 16 years ago
Closed 15 years ago
#10800 closed enhancement (duplicate)
Allow LIKE comparison for $q['meta_compare']
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | Priority: | lowest | |
Severity: | trivial | Version: | 2.8.4 |
Component: | Query | Keywords: | |
Focuses: | Cc: |
Description
I am working on a plugin that will be doing plaintext searches of a metadata property. It would be helpful to have the LIKE operator available to 'meta_compare' within WP_Query::get_posts so that I don't have to create a new filter to accomplish the same result:
in_array($q['meta_compare'], array('=', '!=', '>', '>=', '<', '<=', 'LIKE'))
Change History (3)
Note: See
TracTickets for help on using
tickets.
NOT LIKE and IN would be handy too