Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #25245, comment 1


Ignore:
Timestamp:
09/06/2013 07:26:50 PM (11 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #25245, comment 1

    initial v1  
    11Note that you can add `'relation' => 'OR'` to your meta query to get this:
    22{{{
    3 ... meta_key = '_shortdescription' ... OR ... meta_key = '_shortdescription'
     3... meta_key = '_shortdescription' ... OR ... meta_key = '_longdescription'
    44}}}
    55However, looks like there's no way to change the `AND` before the meta conditions using just `meta_query`.