Geo Mashup post query contextual map


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

Geo Mashup contextual maps display the results of a WordPress query, so they can be very useful in combination with the WordPress `query_posts` function. This example maps post with an example tag, but any call to `query_posts` could be substituted. This is code that would go in a WordPress template.


Copy this code and paste it in your HTML
  1. <?php query_posts( 'tag=example' ); ?>
  2. <?php echo GeoMashup::map( 'map_content=contextual' ); ?>
  3. <?php wp_reset_query(); ?>

URL: http://codex.wordpress.org/Template_Tags/query_posts

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.