Let’s say the original language of your site is english, then when visiting a german post you would return the title of the corresponding english post like that :
// Get the post ID of original post
$original_ID = icl_object_id( $post->ID, 'post', false, 'en' );
// Get original post title
$original_title = get_the_title( $original_ID );
Hope that helps, in any case check out the documentation for icl_object_id();
Related Posts:
- Best WordPress Multi-language Plugin? [closed]
- What is better for wordpress performace?
- Checking current language in a function
- Insights into WordPress Multi-Site, Domain Mapped, and Multilanguage site using WPML [closed]
- Why isn’t WMPL correctly redirecting users based on browser language? [closed]
- WordPress multilingual site using page-id.php files
- Country switcher, then option to choose language for that country [closed]
- Specific content by country in multiple languages
- WPML customizing language selector [closed]
- WPML language tags (Qtranslate feature) [closed]
- WordPress Translation to french, at -> à not working
- Is there a way to ensure browser automatically translates page content to another language (via Google Translate)?
- Theme isn’t multilanguage ready. How can i still add a second language to the site?
- Translate placeholder text in search field
- HTML inside __() or _e() language translation string
- Change language by clicking a button
- Setting WPLANG from a plugin
- qTranslate get content by language [closed]
- Titles in my sidebar widget appear in all languages – with qtranslate
- Having two different versions of the same post?
- detect the language a post is written in
- Does changing ‘WPLANG’ in wp-config.php just effect the admin language or does it have other consequences?
- Making a theme multilingual by adding a custom taxonomy to posts and pages called “Languages”?
- Multi-language module in WordPress or Google sites
- Trigger language change in WordPress
- Qtranslate + Advanced Custom Fields: how to have a multilanguage wysiwyg editor? [closed]
- Get Polylang available languages on admin page of my plugin [closed]
- How to change language?
- Polylang get non-current language/s
- WordPress For Urdu Language
- How to have english digits in some posts with an rtl WordPress theme
- Two different domains for two different languages
- What is the correct way for multi-domain and multi-language website?
- How to reload wordpress textdomains at runtime
- Two language versions for each article
- How can I make a site viewable in multiple languages?
- How to set up WPLANG in wp-config.php for 4 languages?
- Using categories as multilingual mechanism
- ‘Trick’ a plugin (WP-Members) to think the blog language has changed for a single page
- WPML Default Language User Meta [closed]
- Is it possible to temporarily override the language setting?
- make a mulitingual wordpress website Arabic-english
- How to use language files in plugins?
- How to find when qtranslate plugin’s language changes? [closed]
- Simple Multilanguage Switcher
- Custom rewrite rules not working with WPML
- How to have multiple site (UI) languages?
- How to translate WordPress Emails?
- WPML language switcher for custom rewrite rules
- Hook in to add new post link wp admin?
- Get the ID of the default language equivalent page in Polylang [closed]
- Switch site language to en_ZA
- Where to modify translation files by _e()
- language_attributes for two languages?
- WPML – 404 Error when I try to pass GET parameters in my “different languages in directories” installation
- Translating my custom theme, always translated version?
- WordPress and Localization
- qtranslate arabic shortcode?
- Problems character encoding for pages in multiple languages
- Can I set is_rtl() to true?
- WordPress in 3 languages
- ACF Content with WPML not saving [closed]
- Changing interface language without multisite
- Transposh Japanese language transaltion not showing up
- Wrong WordPress language?
- How to create posts or pages with the names in wordpress?
- WP E-commerce wpml translation or multilingual
- Structure of multilingual and multiregional directory listing website for translation
- I cant test my .po file for Turkish Language
- different domains disabled in polylang
- Why .mo .po files are not working with my site?
- WPML – Stop language redirection in initial load
- Change WooCommerce currency programmatically on AJAX request
- Multilingual website with different content and look
- How to add language tags like “” in just some certain pages?
- Localisation and WordPress
- 2 languages, 3 domains
- How to make a wordpress blog in two different languages?
- phantom language switcher
- WordPress multi language works in local host but not in the live site?
- Create a custom page to use in all the sites, A multisite question
- How to use get_post_type_archive_link for a given language?
- Site doesn’t work when updating to SSL using nginx
- Blog switch wpml string translation (multi-site)
- Which language files are loaded?
- Having a two language website
- What are the downsides to uploading filenames in different languages?
- Setting WPLANG from a plugin
- Translation not working in sprinf variable
- Hijack site url on sub domain for translation
- Create a category in different language?
- Having problem in using wordpress with an other language
- Multi language site using only .mo and WPLANG
- Multilingual website suggestions
- get_categories only getting categories in the main language
- multi-language WordPress site
- What is the best option to convert my WordPress website to French Language?
- category title and description in multi language issue
- Fatal Error WordPress Custom Post Type UI + WPML
- site with two diffrent menus for difftent pages?