tribe_get_coordinates issue

Home Forums Additional Help Translations tribe_get_coordinates issue

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1117147
    Brad
    Guest

    Hey,

    I have a custom query and trying to grab the coordinates of the venue associated with each event.

    Here’s a snippet of what my code looks like:

    
    $events = tribe_get_events( array(
                             'posts_per_page' => 12,
    			 'start_date' => current_time( 'Y-m-d' ),
    		) );
    									
    foreach ( $events as $post ) : setup_postdata( $post ); 
    							
    		$venue = tribe_get_venue_id($post->ID);
    		print_r( tribe_get_coordinates( $venue ) );
    
    endforeach;
    

    The array being returned has the ‘lat’ and ‘long’ keys but the values are “0”.

    Array ( [lat] => 0 [lng] => 0 )

    Any ideas here?

    #1117219
    Brian
    Keymaster

    Hi,

    Thanks for using the Events Calendar.

    Here on the translation & pre-sales forum, I’m afraid we do not provide technical support. I would ask that you take any technical support questions across to our wordpress.org forum – our staff scan it periodically and other community members may also be able to help out.

    The Events Calendar

    If you have purchased a plugin from us, please login and post in the premium forums for that plugin and we can help you out there:

    https://theeventscalendar.com/support/forums/

    Thanks again!

    #1122568
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘tribe_get_coordinates issue’ is closed to new replies.