Posted By

cyberhobo on 07/28/10


Tagged

template wordpress map wordpress-geo-mashup


Versions (?)

Geo Mashup post query contextual map


 / Published in: PHP
 

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

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.

  1. <?php query_posts( 'tag=example' ); ?>
  2. <?php echo GeoMashup::map( 'map_content=contextual' ); ?>
  3. <?php wp_reset_query(); ?>

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: cyberhobo on November 27, 2010

There is a limit to the number of posts this will work work with - it's not exact but usually over 100. Geo Mashup issue 404 was started for this problem.

You need to login to post a comment.