Conditional Geo Mashup map template code


/ Published in: PHP
Save to your folder(s)

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.


Copy this code and paste it in your HTML
  1. <?php
  2. $coordinates = GeoMashup::post_coordinates();
  3. if ( class_exists( 'GeoMashup' ) and ! empty( $coordinates ) ) {
  4. echo GeoMashup::map();
  5. }
  6. ?>

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.