Title: Maps  on Single.php template
Last modified: August 31, 2016

---

# Maps on Single.php template

 *  [Valen Correa](https://wordpress.org/support/users/quitoxic/)
 * (@quitoxic)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/maps-on-singlephp-template/)
 * Hi Ben,
 * First of tall thanks for the great plugin I would like to ad the map to the single
   post template in order to make it visible right on the top (under the header 
   and before the title post)
    but… I don’t really understand PHP I’m just moving
   blind here haha.
 * In any case, my single.php code is
 *     ```
       <?php get_header(); ?>
       <?php
       	$id = $wp_query->get_queried_object_id();
       	$style = get_post_meta($id, 'post-style', true) ? get_post_meta($id, 'post-style', true) : 'style1';
       	$infinite = ot_get_option('infinite_load', 'on');
   
       ?>
       <div id="infinite-article" data-infinite="<?php echo $infinite; ?>">
   
       	<?php if (have_posts()) :  while (have_posts()) : the_post(); ?>
       		<?php $ajax = 0; include(locate_template( 'inc/loop/single-'.$style.'.php' ) ); ?>
       	<?php endwhile; else : endif; ?>
   
       </div>
       <?php get_footer(); ?>
       ```
   
 * Could you help me out and let me know what should I ad and where in order to 
   make it working?
 * Thanks again!
 * [https://wordpress.org/plugins/wp-geo/](https://wordpress.org/plugins/wp-geo/)

The topic ‘Maps on Single.php template’ is closed to new replies.

 * ![](https://ps.w.org/wp-geo/assets/icon-256x256.png?rev=993625)
 * [WP Geo](https://wordpress.org/plugins/wp-geo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-geo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-geo/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-geo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-geo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-geo/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Valen Correa](https://wordpress.org/support/users/quitoxic/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/maps-on-singlephp-template/)
 * Status: not resolved