Geo Mashup
[resolved] How to close category line (4 posts)

  1. wiktoratgmail
    Posted 3 years ago #

    I want to show route witch starts and ends in the same point. I can add second post in category pointing in the same point as first but I don't want to have two descriptions of one place.

    Maybe is some solution with custom fields where I can set, that post is starting and ending point of route.

    Thanks for reply!


  2. Dylan Kuhn
    Plugin Author

    Posted 3 years ago #

    Your other option is to put the route in a KML file and attach that to a single post:


    Happy mapping!

  3. wiktoratgmail
    Posted 3 years ago #

    I don't have enough time to fight with KML ;-)

    I have some kind of solution. I've used subplugin geo-mashup-custom/info-window.php. In info-window I've made condition - if post have no thumbnail it will not be showed. I think this can be done also with custom-field.

    <div class="locationinfo post-location-info">
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
      <div class="storycontent">
        <?php if ( function_exists( 'has_post_thumbnail') and has_post_thumbnail() ) : ?>
         <h3><a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
        <?php the_post_thumbnail('map-thumb'); ?>
        <?php the_excerpt('custom_excerpt_more','custom_excerpt_length'); ?>
       <?php endif; ?>
    <?php endwhile; ?>
  4. Dylan Kuhn
    Plugin Author

    Posted 3 years ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic