chnovo7 / wordpress-custom-content-type-manager

Automatically exported from code.google.com/p/wordpress-custom-content-type-manager
0 stars 0 forks source link

GetPostsQuery: support for or conditions in array arguments #508

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
E.g. 

$Q = new GetPostsQuery();
$args = array();
$args['post_type'] = 'people';
$args['homepage']['like'] = array('google','yahoo');
$results = $Q->get_posts($args);

Original issue reported on code.google.com by ever...@fireproofsocks.com on 8 Jul 2013 at 10:32

GoogleCodeExporter commented 8 years ago
Ah, found the culprit: Sprintf error due to the '%' in the like statements.  

Committed revision 747584.

Original comment by ever...@fireproofsocks.com on 29 Jul 2013 at 2:04