Posted By

cyberhobo on 03/10/10


Tagged

template wordpress map wordpress-geo-mashup


Versions (?)

Conditional Geo Mashup map template code


 / Published in: PHP
 

URL: http://code.google.com/p/wordpress-geo-mashup

This template code will work only in the WordPress Loop to include a map if the Geo Mashup plugin is active and the current post has a location.

  1. <?php
  2. $coordinates = GeoMashup::post_coordinates();
  3. if ( class_exists( 'GeoMashup' ) and ! empty( $coordinates ) ) {
  4. echo GeoMashup::map();
  5. }
  6. ?>

Report this snippet  

You need to login to post a comment.