/** * Add hreflang tags for GTranslate subdomain languages * ExploreTraveler.com */ add_action( 'wp_head', 'exploretraveler_add_hreflang_tags', 1 ); function exploretraveler_add_hreflang_tags() { // Get the current path (without domain) $path = $_SERVER['REQUEST_URI']; // Clean the path (remove query strings if any) $path = strtok( $path, '?' ); // List of your languages (subdomain => hreflang code) $languages = array( 'en' => 'https://exploretraveler.com', // English (main) 'es' => 'https://es.exploretraveler.com', // Spanish 'ar' => 'https://ar.exploretraveler.com', // Arabic 'zh-CN' => 'https://zh-CN.exploretraveler.com', // Chinese Simplified 'zh-TW' => 'https://zh-TW.exploretraveler.com', // Chinese Traditional 'fr' => 'https://fr.exploretraveler.com', // French 'de' => 'https://de.exploretraveler.com', // German 'id' => 'https://id.exploretraveler.com', // Indonesian 'ja' => 'https://ja.exploretraveler.com', // Japanese 'ko' => 'https://ko.exploretraveler.com', // Korean 'ms' => 'https://ms.exploretraveler.com', // Malay 'ru' => 'https://ru.exploretraveler.com', // Russian 'uk' => 'https://uk.exploretraveler.com', // Ukrainian 'tl' => 'https://tl.exploretraveler.com', // Filipino ); // Output the tags foreach ( $languages as $code => $domain ) { $url = rtrim( $domain, '/' ) . $path; echo '' . "\n"; } // x-default points to the English version $default_url = 'https://exploretraveler.com' . $path; echo '' . "\n"; }
Skip to content

Adventure

Israel view of carmel mountain

Signup for our Newsletter Email here: https://mailchi.mp/544d66e78709/subscribe-to-exploretraveler https://exploretraveler.com Isreal view of Carmel Moutain Video by http://johngentry.me and http://exploretraveler.info -~-~~-~~~-~~-~- Please watch: “(34) Sycamore Tree In Ancient Israel -…

Exploretraveler Travel Reviews – Explore and travel the world.

Signup for our Newsletter Email here: https://mailchi.mp/544d66e78709/subscribe-to-exploretraveler https://exploretraveler.com ExploreTraveler welcome video. https://exploretraveler.com website Explore and travel the world. Photography by http://KarenGentry.world with Website by http://johngentry.me -~-~~-~~~-~~-~- Please watch:…

Leuven Belgium Travel

Signup for our Newsletter Email here: https://mailchi.mp/544d66e78709/subscribe-to-exploretraveler With so much focus on terrorism people forget that there are Flemish towns to explore. Join us as we do Belgium…

Safari Park San Diego Zoo

Signup for our Newsletter Email here: https://mailchi.mp/544d66e78709/subscribe-to-exploretraveler https://ExploreTraveler.com Have a great time at the San Diego Zoo Safari Park. Bring your kids, and help protect endangered animals from…

Lemur’s of San Diego Zoo: Safari Park

Signup for our Newsletter Email here: https://mailchi.mp/544d66e78709/subscribe-to-exploretraveler In this video, we’re going to take a tour of the Lemur’s of San Diego Zoo Safari Park! Along the way,…

Exploring Taiwan: Dragon Boat Races

Signup for our Newsletter Email here: https://mailchi.mp/544d66e78709/subscribe-to-exploretraveler http://ExploreTraveler.com Explore Taiwan with us, and see all of the site of Taiwan’s island. Video by http://johngentry.me and http://exploretraveler.info -~-~~-~~~-~~-~- Please…

Exploring the Middle East

Signup for our Newsletter Email here: https://mailchi.mp/544d66e78709/subscribe-to-exploretraveler http://ExploreTraveler.com Come explore the world of Israel, Palestine, and Jordan. Your adventure of a lifetime. Video by http://johngentry.me and http://exploretraveler.info -~-~~-~~~-~~-~-…

Our Middle East Tour in Photo Slide Show ExploreTraveler Far East

Signup for our Newsletter Email here: https://mailchi.mp/544d66e78709/subscribe-to-exploretraveler Our Middle East Tour in Photo Slide Show ExploreTraveler the Far East Week 1 https://exploretraveler.com/middle-east-adventure-week-one/ Week 2 https://exploretraveler.com/middle-east-adventure-week-two/ Middle East adventures…

Jerusalem view from Mount of Olives

Signup for our Newsletter Email here: https://mailchi.mp/544d66e78709/subscribe-to-exploretraveler http://ExploreTraveler.com View of Old Jerusalem from the Mount of Olives. Little Petra in Jordan is at a totally different site, and…