have_posts()) {
echo '
';
while ($the_query->have_posts()) {
$the_query->the_post();
uwp_get_template('posts-post.php', $args);
}
echo '
';
/* Restore original Post Data */
wp_reset_postdata();
do_action('uwp_profile_pagination', $the_query->max_num_pages);
} else {
// no posts found
echo "
" . esc_html( sprintf( __( "No %s found.", 'userswp' ), $title ) )."
";
}
?>