Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
  • in reply to: MapPress Show Date and Category on Mashup Pop Ups #13898

    Hi Chris,
    Sorry for the delay and please bear with me. I tried option 1 in the templates/map_poi.php file. It works perfectly on the Mashup view, but now the individual Post views only show the title. Here is the code for the map_poi.php as it is now. Is there a way to have a template for the Mashup and a separate one for the single?

    Thanks for your assistance 🙂

    <div class='mapp-iw'>
    	<div class='mapp-title'>
    		<?php echo $poi->get_title_link(); ?>
    	<div class='mapp-body'>
    		<?php echo $poi->get_body(); ?>
    		  global $post;
    		  // Save current post from The Loop
    		  $current_post = ($post) ? clone($post) : null;
    		  $post = $poi->get_post();
    		  if ($post) {
    			echo the_time( 'F j, Y') . "<br/>";
    			$categories = get_the_category();
    			if (isset($categories[0]))
    				echo $categories[0]->cat_name;
    			// Restore original post so we don't interfere with The Loop
    			if ($current_post) {
    				$post = $current_post;
    	<div class='mapp-links'>
    		<?php echo $poi->get_links(); ?>
Viewing 1 post (of 1 total)