function get_term_parents( $id, $taxonomy, $link = false, $separator = '/', $nicename = false, $visited = array() ) {
  $chain = '';
  $parent = &get_term( $id, $taxonomy );
  if ( is_wp_error( $parent ) )
    return $parent;
  if ( $nicename )
    $name = $parent->slug;
  else
    $name = $parent->name;
  if ( $parent->parent && ( $parent->parent != $parent->term_id ) && !in_array( $parent->parent, $visited ) ) {
    $visited[] = $parent->parent;
    $chain .= get_term_parents( $parent->parent, $taxonomy, $link, $separator, $nicename, $visited );
  }
  if ( $link )
    $chain .= '<a href="' . esc_url( get_term_link( intval( $parent->term_id ), $taxonomy ) ) . '" title="' . esc_attr( sprintf( __( "View all posts in %s" ), $parent->name ) ) . '">'.$name.'</a>' . $separator;
  else
    $chain .= $name.$separator;
  return $chain;
}Booter depuis votre clef : création d’un live-USB sur Mac
- Téléchargez l’image de votre disque d’installation (qui devrait être un fichier .iso)
- Ouvrez votre Applications > Utilities > Terminal.
- Listez vos disques en exécutant diskutil list.Dans la liste obtenue, vous trouverez votre clef USB. Retenez le chemin vers celle-ci (/dev/disk1 pour notre exemple). 
- Il faut maintenant éjecter votre clef avec la commande diskutil unmountDisk /dev/disk1. N’oubliez pas de remplacer /dev/disk1 par votre propre chemin s’il est différent.
- Enfin, exécutez la commande suivante dd if=~/Downloads/Image.iso of=/dev/disk1 bs=1m. N’oubliez pas de remplacer ~/Downloads/Image.iso par le chemin vers l’image de votre disque d’installation, et /dev/disk1 par le chemin vers votre clef USB s’il est différent.
- Patientez…
- Lorsque votre Terminal se manifeste à nouveau vous pouvez débrancher votre clef, et l’utiliser pour booter votre disque d’installation sur une machine !
Get latitude and longitude from an address with PHP and Google Maps API
// We define our address
$address = 'Caen, Basse-Normandie';
// We get the JSON results from this request
$geo = file_get_contents('http://maps.googleapis.com/maps/api/geocode/json?address='.urlencode($address).'&sensor=false');
// We convert the JSON to an array
$geo = json_decode($geo, true);
// If everything is cool
if ($geo['status'] = 'OK') {
  // We set our values
  $latitude = $geo['results'][0]['geometry']['location']['lat'];
  $longitude = $geo['results'][0]['geometry']['location']['lng'];
}Travel Routes WordPress Plugin
Easily add geographical tags on a map when you write a post, and it will automatically create new countries and localities terms. You can also order those locations randomly or by date to define your routes.

Use the map as a widget, and pick your own colors to customize it.

It is a SVG map that react to users actions (mouse over posts and terms links, click on route line…).

https://wordpress.org/plugins/travel-routes/
Enjoy folks.
