-
Notifications
You must be signed in to change notification settings - Fork 2
/
archive-organization.php
43 lines (41 loc) · 1.14 KB
/
archive-organization.php
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
<?php
get_header();
the_cam_portal_breadcrumbs();
?>
<div class="container">
<div class="row">
<div class="col-lg-12">
<?php
get_template_part( 'template-parts/content', 'organization-filter' );
$args = array(
'post_type' => 'organization',
'orderby' => 'title',
'order' => 'ASC',
'paged' => get_query_var( 'paged' ) ? get_query_var( 'paged' ) : 1
);
$query = new WP_Query( $args );
if ( $query -> have_posts() ) :?>
<section class="section">
<div class="collapsible">
<ul>
<?php
/* Start the Loop */
while ( $query -> have_posts() ) :
$query -> the_post();
get_template_part( 'template-parts/content', 'organization' );
endwhile;
?>
</div>
</ul>
</section>
<?php
cam_portal_paginations();
else :
get_template_part( 'template-parts/content', 'none' );
endif;
?>
</div>
</div><!-- #main -->
</div><!-- #primary -->
<?php
get_footer();