| @@ -11,8 +11,9 @@ | ||
| 11 | 11 | <div class="uwp-profile-item-block"> |
| 12 | 12 | <?php |
| 13 | 13 | // The Loop |
| 14 | 14 | if ($the_query && $the_query->have_posts()) { |
| 15 | + | |
| 15 | 16 | echo '<ul class="uwp-profile-item-ul">'; |
| 16 | 17 | while ($the_query->have_posts()) { |
| 17 | 18 | $the_query->the_post(); |
| 18 | 19 | uwp_get_template('posts-post.php', $args); |
| @@ -20,12 +21,11 @@ | ||
| 20 | 21 | echo '</ul>'; |
| 21 | 22 | |
| 22 | 23 | /* Restore original Post Data */ |
| 23 | 24 | wp_reset_postdata(); |
| 24 | - | |
| 25 | - do_action('uwp_profile_pagination', $the_query->max_num_pages); | |
| 26 | 25 | } else { |
| 27 | 26 | // no posts found |
| 28 | 27 | echo "<p>" . esc_html( sprintf( __( "No %s found.", 'userswp' ), $title ) )."</p>"; |
| 29 | 28 | } |
| 29 | + do_action('uwp_profile_pagination', $the_query->max_num_pages); | |
| 30 | 30 | ?> |
| 31 | 31 | </div> |