WordPress.org

Ready to get started?Download WordPress

Forums

WP Geo
[resolved] World map of posts doesn't show anymore (3 posts)

  1. urbanty
    Member
    Posted 1 year ago #

    Hi,

    following this post
    http://wordpress.org/support/topic/plugin-wp-geo-how-to-show-world-map-of-all-my-posts?replies=2
    I created a page with a world map showing all my blog's posts as pins. I used this code to call the map:
    <?php if ( isset($wpgeo) ) $wpgeo->categoryMap(); ?>
    A while ago (don't know exactly when, but definitely still in 2012), this method stopped working.
    I'm guessing that something in the plugin's code changed, but I'm not sure.

    Either way (because this method was a little bit uncomfortable anyway), I think it would be an important feature of the WP Geo plugin to have such a world map.

    Thanks!

    http://wordpress.org/extend/plugins/wp-geo/

  2. Ben Huson
    Member
    Plugin Author

    Posted 1 year ago #

    I'll look into this...

    You could try using the wpgeo_map() function in your template;

    <?php
    wpgeo_map( array(
       'posts_per_page' => -1
    ) );
    ?>
  3. urbanty
    Member
    Posted 1 year ago #

    Hi Ben,

    you new code works fine.

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic