Maps on Single.php 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!
- The topic ‘Maps on Single.php template’ is closed to new replies.