How do I make template for showing two languages simultaneously
-
I would like to show specific pages in two out of four available languages? I’m using qtranslate with acf avanced custom fields.
The code below does the job for the_content… How would I get the_field from the database, but only in a specific languages (e.g. ‘fr’and ‘en’) and echo them on an English page? …Or any other surgestions approaches to this are welcome?
<?php $id=5; $post = get_page($id); $content = qtrans_use('fr', $post->post_content,false); echo $content; ?>
Thanks for your help!
- The topic ‘How do I make template for showing two languages simultaneously’ is closed to new replies.