WordPress.org

Ready to get started?Download WordPress

Forums

Geo Mashup
[resolved] saved_location (5 posts)

  1. saltedm8
    Member
    Posted 2 years ago #

    Would anyone be able to tell me how I can take the saved_location feature and call it to display in the info-window.php file

    I want to use it as a title, I already know where to place it, I just need to know how to call it, thanks

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

  2. Dylan Kuhn
    Member
    Plugin Author

    Posted 2 years ago #

    You need to use a filter to add it, as in this example:

    http://code.google.com/p/wordpress-geo-mashup/wiki/FilterReference#Example

  3. saltedm8
    Member
    Posted 2 years ago #

    Thanks for your answer but I don't think that is what I am looking for

    I want every story to use the titles of the stories submitted to the map, but I also want to include a title above the news titles in the bubble, for example

    -------------------
    MY TITLE (echoed from saved_location)
    First story
    second story
    -------------------

    so, I just need a direct call to saved_location to echo the location.

  4. Dylan Kuhn
    Member
    Plugin Author

    Posted 2 years ago #

    My bad, you did say you're working in a template. That would be

    <?php echo GeoMashup::location_info( 'fields=saved_name' ); ?>

  5. saltedm8
    Member
    Posted 2 years ago #

    Thank you, that was the one, sorry for the late reply

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.