/ Published in: PHP

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.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php query_posts( 'tag=example' ); ?> <?php echo GeoMashup::map( 'map_content=contextual' ); ?> <?php wp_reset_query(); ?>
URL: http://codex.wordpress.org/Template_Tags/query_posts
Comments
