Description

Outputs the post longitude.

Usage

<?php wpgeo_longitude( $post_id = null ); ?>

Parameters

$post_id
(int) Post ID. Defaults to the current post in the loop.

Examples

Get the longitude for the current post in the loop.

<?php wpgeo_longitude(); ?>

Get the longitude for post ID 30.

<?php wpgeo_longitude( 30 ); ?>

Notes

See also: get_wpgeo_longitude()

Change Log

Since: 3.1.1

Source File

wpgeo_longitude() is located in wp-includes/templates.php.

Related

get_wpgeo_latitude, get_wpgeo_longitude, wpgeo_latitude

Leave a Reply