Support » Plugin: WP Geo » [Plugin: WP Geo] Bizarre Archive Page Map and Widget Issue

  • Resolved jamblo


    Hello there

    Bit of an odd issue I’ve discovered when using the following code in a custom post type archive:

    <?php if ( isset($wpgeo) ) $wpgeo->categoryMap(); ?>

    Placed in or outside the loop*. This code ONLY works when the Contextual Map widget is added to a sidebar (that isn’t even called into the site, just sat there in the admin panel).

    When the widget isn’t in the sidebar the map isn’t there, just an empty box.

    Not sure why this would be?

    *If I place it INSIDE the loop, I get the map once and an extra empty map rectangle for every post in the archive. Very odd.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Ben Huson


    Please try this with the latest development version.
    You can download the zip file on this page:

    In the WP Geo settings you’ll need to ensure the following “Show Maps On” checkboxes are selected:

    1. Your Custom Post Type
    2. The “Posts archive/home page”

    This ensures the map will load load on the post archive page for your CPT.

    There is also a filter ‘wpgeo_show_maps’ in this version so that you can force the maps to load (or not) on pages by returning true or false.

    All sorted after the recent update, by the way.

    Keep going with this plug-in, Ben, its proving damn useful!

    Plugin Author Ben Huson



    Big update coming soon to use Google Maps v3 as their version 2 API will expire in a few months.

    If you are able to test the development version that would be great.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: WP Geo] Bizarre Archive Page Map and Widget Issue’ is closed to new replies.