Example #1
0
<?php

/**
 * The template used to display Tag Archive pages
 *
 * @package WordPress
 * @subpackage Twenty_Eleven
 * @since Twenty Eleven 1.0
 */
get_header();
the_map("map_canvas");
?>
<div id="main">
		<section id="primary">
			<div id="content" role="main">

			<?php 
if (have_posts()) {
    ?>

				<header class="page-header">
					<h1 class="page-title"><?php 
    printf(__('Tag Archives: %s', 'mymap'), '<span>' . single_tag_title('', false) . '</span>');
    ?>
</h1>

					<?php 
    $tag_description = tag_description();
    if (!empty($tag_description)) {
        echo apply_filters('tag_archive_meta', '<div class="tag-archive-meta">' . $tag_description . '</div>');
    }
 * @subpackage Twenty_Eleven
 * @since Twenty Eleven 1.0
 */
get_header();
while (have_posts()) {
    the_post();
    ?>

<?php 
    $m_options = array();
    $id = get_the_ID();
    $m_options['origin']['lat'] = get_the_latitude($id);
    $m_options['origin']['lng'] = get_the_longitude($id);
    $m_options['origin']['zoom'] = 19;
    $m_options['mapType'] = 'SATELLITE';
    the_map("map_canvas", false, $m_options);
    ?>
	
	
<div id="main">
		<div id="primary">
			<div id="content" role="main">
					<nav id="nav-single">
						<h3 class="assistive-text"><?php 
    _e('Post navigation', 'mymap');
    ?>
</h3>
						<span class="nav-previous"><?php 
    previous_post_link('%link', __('<span class="meta-nav">&larr;</span> Previous', 'mymap'));
    ?>
</span>
Example #3
0
?>

	<?php 
get_template_part('parts/loop', 'title');
?>

    <!--=== Content Part ===-->
    <div class="container content">		
    	<div class="row margin-bottom-60">
    		<div class="col-md-6 col-sm-6">
                <!-- Google Map -->
				<div id="map" class="height-450" data-lat="<?php 
the_map('map', 'lat');
?>
" data-lng="<?php 
the_map('map', 'lng');
?>
">
				</div><!---/map-->
				<!-- End Google Map -->
            </div><!--/col-md-9-->
            
    		<div class="col-md-6 col-sm-6">	
				<!-- Get In Touch -->
                <?php 
the_field('statement');
?>
				
				<hr>
			
            	<!-- Contacts -->
<?php

/**
 * The main template file.
 *
 * This is the most generic template file in a WordPress theme
 * and one of the two required files for a theme (the other being style.css).
 * It is used to display a page when nothing more specific matches a query.
 * E.g., it puts together the home page when no home.php file exists.
 * Learn more: http://codex.wordpress.org/Template_Hierarchy
 *
 * @package WordPress
 * @subpackage Twenty_Eleven
 */
get_header();
the_map('map_canvas', true);
?>
	<div id="main">
		<div id="primary">
			<div id="content" role="main">

			<?php 
if (have_posts()) {
    ?>

				<?php 
    /* Start the Loop */
    ?>
				<?php 
    while (have_posts()) {
        the_post();