-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpage-members.php
More file actions
50 lines (36 loc) · 1.33 KB
/
page-members.php
File metadata and controls
50 lines (36 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
/**
* Template Name: Members
*/
get_header(); ?>
<div id="primary" class="content-area members-page">
<div id="content" class="site-content width-75 bg-76" role="main">
<?php while ( have_posts() ) : the_post(); ?>
<header class="page-header bg-70">
<h1 class="page-title"><?php the_title(); ?></h1>
</header><!-- .entry-header -->
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="entry-content">
<?php the_content(); ?>
</div><!-- .entry-content -->
</article><!-- #post-## -->
<?php endwhile; // end of the loop. ?>
<?php
$args = array('post_type'=>'post', 'category_name'=>'member-news', 'posts_per_page'=>-1);
$member_news = new WP_Query($args);
if ($member_news->have_posts()) : ?>
<div class="member-posts">
<header class="page-header bg-70">
<h2 class="page-title">Member News</h2>
</header><!-- .entry-header -->
<?php while($member_news->have_posts()) : $member_news->the_post();
get_template_part('loop-feed');
endwhile; ?>
</div>
<?php endif; ?>
</div><!-- #content -->
<div id="secondary" class="widget-area awards width-25" role="complementary">
<?php get_template_part('module-awards'); ?>
</div><!-- #secondary -->
</div><!-- #primary -->
<?php get_footer(); ?>