Forum: Nearby Posts

This forum is closed for new topics. However, you can still search for a solution in the old topics. For technical support related to the Nearby Posts premium extension please open a new premium support ticket.

[Resolved]Nearest posts in map popup window

Forums Nearby Posts Nearest posts in map popup window

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #50154
    Chris Homan
    Member

    Hi Eyal,

    I’d like to get a listing of the nearest posts as part of the Global Map popup window.

    I tried this as a starting point in my template but it doesn’t work:
    <?php echo do_shortcode( '[gmw_nearby_locations item_type="posts" nearby="'.$post->ID.'"]' ); ?>

    Any thoughts?

    Thanks,

    Chris

    Private Content Hidden
    #50189

    Hi Chris,

    I tried this as a starting point in my template but it doesn’t work:

    What do you see in the info window? any error message?

    Private Content Hidden
    #50190
    Chris Homan
    Member

    Just the shortcode as text:
    [gmw_nearby_locations item_type="posts" nearby="111"]

    Where 111 is the id of the respective post

    #50582

    HI Chris,
    Sorry for missing out your last reply.

    I see where the issue is. If you are comfortable with editing a core file I can provide you with a “quick fix” until I release an official update. It is a matter of change a single line of code.

    #50591
    Chris Homan
    Member

    Hi Eyal,

    That would be great, thanks, I’m happy editing a core file.

    Chris

    #50602

    Great.
    Please open the file
    gmw-nearby-locations/gmw-nearby-locations.php

    and line 53 which should be:

    change to

    Save the file and give it a try.

    #50728

    This topic marked “Resolved” due to inactivity. If you wish to reply to this topic please change its status to “Not resolved”  before replying.

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.