Skip to content

Instantly share code, notes, and snippets.

@csaborio001
Last active December 10, 2019 10:49
Show Gist options
  • Save csaborio001/139cae8a09feb2caea38105a932d38b4 to your computer and use it in GitHub Desktop.
Save csaborio001/139cae8a09feb2caea38105a932d38b4 to your computer and use it in GitHub Desktop.
if ( UserManagement::can_current_user_access_member_page() ) {
// Returns a WP_Query object.
$unmatched_volunteers = UserManagement::get_unmatched_volunteers( true );
}
$args = array(
'post_type' => 'volunteer',
'posts_per_page' => '10',
'button_label' => 'Show More Posts',
'button_loading_label' => 'Loading...',
'scroll' => 'false',
'post__in' => implode( ',', $unmatched_volunteers->posts ),
'repeater' => 'template_1',
);
if ( function_exists( 'alm_render' ) ) {
alm_render( $args );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment