-
Notifications
You must be signed in to change notification settings - Fork 0
/
page-map.php
35 lines (33 loc) · 1011 Bytes
/
page-map.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
<?php get_header();
pageBanner( array(
'title' => 'Our location',
'subtitle' => 'Click on the pin-drop for exact location',
));
?>
<!--/ Section Blog-Single Star /-->
<section class="blog-wrapper sect-pt4" id="blog">
<div class="container">
<div class="row">
<div class="col-md-12">
<?php
$map = new WP_Query (array(
'post_type' => 'map',
'posts_per_page' => 3,
'paged'=>get_query_var('paged',1)
));
if( $map->have_posts() ):
while( $map->have_posts() ): $map->the_post(); ?>
<?php get_template_part('template-parts/content','map', get_post_format()); ?>
<?php endwhile; ?>
<?php wp_reset_postdata();?>
<hr>
<?php echo pagination() ?>
<?php else : ?>
<p><?php __('No Posts Found'); ?></p>
<?php endif; ?>
</div>
</div>
</div>
</section>
<!--/ Section Blog-Single End /-->
<?php get_footer(); ?>