Skip to content

Instantly share code, notes, and snippets.

Created June 18, 2012 23:40
Show Gist options
  • Save anonymous/2951455 to your computer and use it in GitHub Desktop.
Save anonymous/2951455 to your computer and use it in GitHub Desktop.
<?php
$postcode = tribe_get_zip(get_the_ID());
$postcodeTable = array(
'N' => "North",
'SW' => "South West"
);
$start = explode('-', $postcode['id']);
echo $postcodeTable[$start[0]];
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment