Front Page › Forums › HRM › Few Developer Questions – Custom Fields › Reply To: Few Developer Questions – Custom Fields
June 26, 2019 at 8:48 pm
#43892
abdul billoo
Participant
Your inital code says we can do it via arguments in erp\includes\functions-people.php
$defaults = [
'type' => 'all',
'number' => 20,
'offset' => 0,
'orderby' => 'id',
'order' => 'DESC',
'trashed' => false,
'meta_query' => [],
'count' => false,
'life_stage' => '',
'include' => [],
'exclude' => [],
's' => '',
'no_object' => false
];
Can u give an example with what i wish to achieve using $defaults or any example that is closer and works with multiple meta values?