PluginProbe
UsersWP – Front-end login form, User Registration, User Profile & Members Directory plugin for WP / trunk
UsersWP – Front-end login form, User Registration, User Profile & Members Directory plugin for WP vtrunk
1.2.72 1.2.71 1.2.70 1.2.69 1.2.68 1.2.67 1.2.66 1.2.65 1.2.64 1.2.63 trunk 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 1.0.16 1.0.17 1.0.18 1.0.19 1.0.20 1.0.21 1.0.22 1.0.23 All 172 releases
userswp / templates / loop-posts.php

loop-posts.php in UsersWP – Front-end login form, User Registration, User Profile & Members Directory plugin for WP trunk, at templates/loop-posts.php

31 lines 848 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 if ( ! defined( 'ABSPATH' ) ) {
4 exit; // Exit if accessed directly
5 }
6
7 $the_query = isset( $args['template_args']['the_query'] ) ? $args['template_args']['the_query'] : '';
8 $title = isset( $args['template_args']['title'] ) ? $args['template_args']['title'] : '';
9 ?>
10 <h3><?php echo esc_html( $title ); ?></h3>
11 <div class="uwp-profile-item-block">
12 <?php
13 // The Loop
14 if ($the_query && $the_query->have_posts()) {
15 echo '<ul class="uwp-profile-item-ul">';
16 while ($the_query->have_posts()) {
17 $the_query->the_post();
18 uwp_get_template('posts-post.php', $args);
19 }
20 echo '</ul>';
21
22 /* Restore original Post Data */
23 wp_reset_postdata();
24
25 do_action('uwp_profile_pagination', $the_query->max_num_pages);
26 } else {
27 // no posts found
28 echo "<p>" . esc_html( sprintf( __( "No %s found.", 'userswp' ), $title ) )."</p>";
29 }
30 ?>
31 </div>