You must use the qTranslate native functions to do your job. Use qtrans_use
, that is the function that do all the job in qTranslate. It’s defined in qtranslate_core.php, line 747
function qtrans_use($lang, $text, $show_available=false)
Use it on the raw content of the post!
Try this code:
<?php
$id=47; $post = get_page($id);
$content = qtrans_use('en', $post->post_content,false);
echo $content;
?>
In this example, it will return the English version of your text! Substitute it with the desired language identifier to translate into another language!
Related Posts:
- Best WordPress Multi-language Plugin? [closed]
- How to determine current active language in qtranslate plugin? [closed]
- Titles in my sidebar widget appear in all languages – with qtranslate
- Is there a way to localize role labels?
- Qtranslate + Advanced Custom Fields: how to have a multilanguage wysiwyg editor? [closed]
- How to find when qtranslate plugin’s language changes? [closed]
- WPML language tags (Qtranslate feature) [closed]
- HTML inside __() or _e() language translation string
- Change language by clicking a button
- Setting WPLANG from a plugin
- Disable qTranslate by post type in admin + disable per page / post ID on front-end [closed]
- Having two different versions of the same post?
- What is better for wordpress performace?
- Multi-language permalink in qtranslate
- 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
- Qtranslate displays empty categories with get_categories()
- Custom Meta Field not Working with qTranslate [closed]
- Trigger language change in WordPress
- Insights into WordPress Multi-Site, Domain Mapped, and Multilanguage site using WPML [closed]
- Get Polylang available languages on admin page of my plugin [closed]
- How to change language?
- Polylang get non-current language/s
- Why isn’t WMPL correctly redirecting users based on browser language? [closed]
- WordPress For Urdu Language
- How to have english digits in some posts with an rtl WordPress theme
- Getting translated string through a variable
- 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?
- How to set a custom title per language?
- Using categories as multilingual mechanism
- How to use get_page_by_title() with qTranslate?
- ‘Trick’ a plugin (WP-Members) to think the blog language has changed for a single page
- Is it possible to temporarily override the language setting?
- make a mulitingual wordpress website Arabic-english
- How to use language files in plugins?
- Generate multiple goo.gl shortlinks for qtranslate bilingual blog
- Simple Multilanguage Switcher
- How to have multiple site (UI) languages?
- Country switcher, then option to choose language for that country [closed]
- Specific content by country in multiple languages
- 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 customizing language selector [closed]
- 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
- Can the qTranslateX-Plugin translate non-article text? [closed]
- Changing interface language without multisite
- WordPress Translation to french, at -> à not working
- Transposh Japanese language transaltion not showing up
- WordPress Relative Path
- WordPress page with non-English text
- Wrong WordPress language?
- WP E-commerce wpml translation or multilingual
- I cant test my .po file for Turkish Language
- different domains disabled in polylang
- Why .mo .po files are not working with my site?
- where to add this filter? in which file should be added?
- 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
- Polylang plugin translation problems
- 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?
- Theme isn’t multilanguage ready. How can i still add a second language to the 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?
- Translate placeholder text in search field
- qTranslate get content by language using wp_query
- Having problem in using wordpress with an other language
- Set language from url?
- 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
- site with two diffrent menus for difftent pages?
- How to make WP in two languages (e.g. English & Bengali) without plugins