• Resolved LS

    (@lsterling03)


    I only want to show posts from my custom post type “Locations” on my mashup map. That was working fine until I just imported 60 posts from a wordpress.com blog. Now ALL of those blog posts are showing up on the map, even though I’ve not entered any location data for them (they’re all in one location somewhere off of Africa??). I’ve double checked the geo mashup options page, and the only post type checked is “locations” on the “collect location data for:” setting.

    Do you have any idea why the general posts would be showing up on the map?

    New posts that I create don’t appear on the map — it’s just the 60 posts I imported from the old wordpress.com blog. Is there something I can search for in the database to delete for these posts?

    I’m displaying the map with this template tag:

    <?php echo GeoMashup::map() ?>

    http://wordpress.org/plugins/geo-mashup/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter LS

    (@lsterling03)

    Also, I’ve tried this tag to directly pull just the post type, but it still pulls in all the general posts from that import.

    <?php echo GeoMashup::map('map_post_type=lslocation') ?>

    Thread Starter LS

    (@lsterling03)

    Nevermind. Actually, using the above code with the post type DID work. The old code was still stuck in my cache.

    So this is technically fixed, but I’m still curious if anyone knows why/how those imported posts are incorrectly appearing on the map, while created-from-scratch posts are (correctly) not.

    Plugin Author Dylan Kuhn

    (@cyberhobo)

    I can only guess. If you use the “Geocode Custom Field” setting, or perhaps even “Copy Geodata Meta Fields”, imported posts could be triggering that functionality by importing fields that Geo Mashup interprets as geo data.

    Thread Starter LS

    (@lsterling03)

    I just discovered it is actually still doing it to some other posts, even with the explicit post type declared in the template tag….

    I did have the geodata meta fields option checked. I unchecked it but it didn’t solve it. I wonder if I delete all the posts and then import them again with that unchecked, if that would work? I’ll give that a try….

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Showing all posts on map – but I only want custom post type’ is closed to new replies.