-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage-declarations.php
50 lines (42 loc) · 1.08 KB
/
page-declarations.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
44
45
46
47
48
49
50
<?php
/**
* Template Name: Declarations
*
* @package Urban_Rights
*/
get_header(); ?>
<div id="primary" class="row">
<main id="main" class="col-sm-12" role="main">
<?php // header
while ( have_posts() ) : the_post();
$footer = get_the_content();
get_template_part( 'template-parts/content', 'archive' );
endwhile;
wp_reset_postdata();
/* Archive Loop */
$pt = "declarations";
$args = array(
'post_type' => $pt,
'nopaging' => 'true',
'order' => 'ASC',
'orderby' => 'menu_order'
);
$archive = new WP_Query( $args );
if ( $archive->have_posts() ) : ?>
<div class="row row-littlemargin section-space">
<?php $count = 0;
$tablet_count = 0;
while ( $archive->have_posts() ) {
$archive->the_post();
get_template_part( 'template-parts/content', $pt );
}
wp_reset_postdata(); ?>
</div><!-- .row -->
<?php endif;
if ( $footer != '' )
echo "<div class='row'><div class='col-md-6'>".apply_filters('the_content',$footer)."</div></div>";
?>
</main><!-- #main -->
</div><!-- #primary -->
<?php
get_footer();