Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /* Template Name: Page With Map */
- get_header(); ?>
- <?php
- $location = get_field('map_location');
- if( !empty($location) ):
- ?>
- <div id="map" class="acf-map featured-banner-container">
- <div class="marker" data-lat="<?php echo $location['lat']; ?>" data-lng="<?php echo $location['lng']; ?>"></div>
- </div>
- <?php endif; ?>
- <div id="primary" class="content-area">
- <main id="main" class="site-main" role="main">
- <div class="container">
- <div class="row">
- <div class="col-md-12">
- <?php
- while ( have_posts() ) : the_post();
- get_template_part( 'template-parts/content', 'page' );
- // If comments are open or we have at least one comment, load up the comment template.
- if ( comments_open() || get_comments_number() ) :
- comments_template();
- endif;
- endwhile; // End of the loop.
- ?>
- </div>
- </div>
- </div>
- </main><!-- #main -->
- </div><!-- #primary -->
- <?php
- get_footer();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement