Home › Forums › MapPress Support › Suggestions on time saving entry › Reply To: Suggestions on time saving entry
July 15, 2013 at 10:13 am
#13001
Hi,
I think you’ll find The template file you want is probably “single.php”. There may be some tutorials out there for the twenty twelve theme files, here’s one:
http://www.class.giip.org/classes/wordpress/lesson-3/
The mashup settings only apply to mashups. If you want to change the output behavior for single maps, you can modify the MapPress template file “map_poi.php” (see the documentation for an overview of copying/modifying the files).
This should always print the post title as the title and the address as the body:
<div class='mapp-iw'>
<div class='mapp-title'>
<?php
if ($post = get_post($this->postid)) {
echo "<a href='" . get_permalink($this->postid) . "' $target>" . $post->post_title . "</a>";
}
?>
</div>
<div class='mapp-body'>
<?php echo $poi->get_thumbnail(array('class' => 'mapp-thumb')); ?>
<?php echo $poi->get_address(); ?>
</div>
<div class='mapp-links'>
<?php echo $poi->get_links(); ?>
</div>
</div>
