WordPress.org

Ready to get started?Download WordPress

Forums

Geo Mashup
[resolved] Possible to have a Map on a Archive Page? (3 posts)

  1. MCM
    Member
    Posted 1 year ago #

    Is it possible to have a MAP that displays all the locations of the posts that are in the current archive?

    e.g.

    If I click on Category A and see all the psots for Category A, at the top of the Archive page I see a MAP of all the posts.

    <?php echo GeoMashup::map("map_content=contextual"); ?> but does not work. I have tried goign through the tagging reference documentation but I hope I am just missing something ?

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

  2. Dylan Kuhn
    Member
    Plugin Author

    Posted 1 year ago #

    Contextual maps only display posts from the current query. It sounds like you probably want this:

    http://snipplr.com/view/44389/geo-mashup-global-map-of-the-current-category/

  3. MCM
    Member
    Posted 1 year ago #

    THanks, I manged to get it to work :).

    echo GeoMashup::map("map_type=contextual","object_name=post","country_code=ZA");

    I put this BEFORE the while loop.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.