Forum Replies Created
Viewing 1 post (of 1 total)
-
AuthorPosts
-
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> <div class='mapp-body'> <?php echo $poi->get_body(); ?> <?php global $post; // Save current post from The Loop $current_post = ($post) ? clone($post) : null; $post = $poi->get_post(); if ($post) { setup_postdata($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; setup_postdata($current_post); } } ?> </div> <div class='mapp-links'> <?php echo $poi->get_links(); ?> </div> </div> -
AuthorPosts
Viewing 1 post (of 1 total)
