Site icon Hip-Hop Website Design and Development

Pagination for person record

I’m exhibiting all of the customers through the use of the get_user() operate. However I have to paginate the outcomes. I attempted loads, however did not succeed. Right here is the code, which does not work as anticipated:

$args = array( 'meta_query' => array(
    array(
        'key'   => 'ib_s2member_custom_fields',
        'worth' => trim($_GET["country"]),
        'evaluate' => 'LIKE'
    ),
array(
        'key'   => 'ib_s2member_custom_fields',
        'worth' => trim($_GET["city"]),
        'evaluate' => 'LIKE'
    ),
    array(
        'key'   => 'ib_s2member_custom_fields',
        'worth' => $first_name,
        'evaluate' => 'LIKE'
    ),
array(
        'key'   => 'ib_s2member_custom_fields',
        'worth' => $last_name,
        'evaluate' => 'LIKE'
    )
) );

$customers = get_users( $args );