Customizing List Marker output
-
Ian–
Love the plugin! I just need to tweak the shortcode-bgmp-list-marker.php code so that the links in the list go to the Placemark page.
Right now I’m using this code:
<li class="<?php esc_attr_e( self::PREFIX ); ?>list-item"> <div class="<?php esc_attr_e( self::PREFIX ); ?>list-placemark-title"> <a href="<?php echo apply_filters( 'the_permalink', $p->post_title ); ?>"><?php echo apply_filters( 'the_title', $p->post_title ); ?></a> </div> </li>
The only problem with this is when I have a Placemark title with spaces between the words, i.e. Dominican Republic. This creates
<a href=Dominican Republic>Dominican Republic</a>
Obviously, that won’t work … how would I edit my code string using the permalink in order to write a good link?
Thanks in advance for any help you can provide.
Matt
http://wordpress.org/extend/plugins/basic-google-maps-placemarks/
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Customizing List Marker output’ is closed to new replies.