How to Display GPS Coordinate in Listing Page of phpMyDirectory

If you are using phpMyDirectory and would like to display GPS Coordinate in listing page, this is the modification required.

To do this, 2 files have to be modified,

  1. listing.php -> located in the root of phpMyDirectory installation
  2. listing_default.tpl -> located in template directory


Search following code,


Add the following codes directly below


and save it.


Search following code,

<?php echo $map; ?>

Add the following codes directly above it,

<h2>GPS Coordinate, Location and Map</h2>
<strong>Latitude : </strong><?php echo $latitude; ?><br />
<strong>Longitude : </strong><?php echo $longitude; ?><br /><br />

and save it.

Remove Date Below Post in Twenty Twelve Theme

This is the method on how to remove date from the post if you are using Twenty Twelve Theme in your wordpress blog. The example date under the post is

This entry was posted in Uncategorized on January 7, 2013.

To remove it, in wordpress admin area, select “Appearance” and “Editor”. Select “Theme Functions (functions.php)” file and search for the code as below,

	// Translators: 1 is category, 2 is tag, 3 is the date and 4 is the author's name.
	if ( $tag_list ) {
		$utility_text = __( 'This entry was posted in %1$s and tagged %2$s on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' );
	} elseif ( $categories_list ) {
		$utility_text = __( 'This entry was posted in %1$s on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' );
	} else {
		$utility_text = __( 'This entry was posted on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' );

What you need to change to to remove “on %3$s” in 3 locations in each line start with “$utility_text”. Done 🙂