PluginProbe
UsersWP – Front-end login form, User Registration, User Profile & Members Directory plugin for WP / 1.2.7
UsersWP – Front-end login form, User Registration, User Profile & Members Directory plugin for WP v1.2.7
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 1.2.7, at templates/loop-posts.php

31 lines 847 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
16 echo '<ul class="uwp-profile-item-ul">';
17 while ($the_query->have_posts()) {
18 $the_query->the_post();
19 uwp_get_template('posts-post.php', $args);
20 }
21 echo '</ul>';
22
23 /* Restore original Post Data */
24 wp_reset_postdata();
25 } else {
26 // no posts found
27 echo "<p>" . esc_html( sprintf( __( "No %s found.", 'userswp' ), $title ) )."</p>";
28 }
29 do_action('uwp_profile_pagination', $the_query->max_num_pages);
30 ?>
31 </div>