如何使用多个角色参数获取WP_User_Query

时间:2015-11-23 12:47:22

标签: wordpress

我有两个用户角色

1)供应商2)freevendor

在这里,我尝试使用以下用户角色Actions( """ actions{ ACTION_NAME=[ELEMENT,ANOTHER_ELEMENT,SOMETHING_ELSE] ANOTHER_ACTION=[SOMETHING_HERE,AN0THER_ONE] }""") Failure(ParseError(Position(109,4,39), ... 来获取用户,但是查询仅提取vendor

freevendor

那么我如何使用上面的代码段来获取多个用户角色freevendor$vendor_total_args = array ( 'role' => 'vendor', 'role' => 'freevendor', 'orderby' => $orderby, 'order' => $order, 'meta_query' => array( 'relation' => 'AND', array( 'key' => 'pv_merchant__experiance_dropdwon', 'value' => $_POST[ 'pv_merchant__experiance_dropdwon1' ], 'compare' => 'LIKE' ), array( 'key' => 'pv_merchant_specialization', 'value' => $_POST[ 'pv_merchant__experiance_dropdwon2' ], 'compare' => 'LIKE' ) ) );

0 个答案:

没有答案