Get specific pages on another page by language – acf
-
I would like to show specific pages on another page in two or more languages, while the menu and everything is translated in the language chosen.
The code below does the job for the_content, but I’m using ACF with qTranslate. How would I pull the_field from the database, but only in a specific language (e.g. ‘fr’) and echo it on an English page?
<?php $id=5; $post = get_page($id); $content = qtrans_use('fr', $post->post_content,false); echo $content; ?>
Thanks for your help! Alan
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Get specific pages on another page by language – acf’ is closed to new replies.