Title: Question: Setting up a &#8220;fallback language&#8221; through PHP
Last modified: November 17, 2016

---

# Question: Setting up a “fallback language” through PHP

 *  [lucamiras](https://wordpress.org/support/users/lucamiras/)
 * (@lucamiras)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/question-setting-up-a-fallback-language-through-php/)
 * Hey everyone,
 * I have a website with a system of English blogposts, some of which are translated.
   I would like the frontpage (the “Your latest posts”) to display the translated
   posts when available, and otherwise show the non-translated posts.
 * I know that this is not part of the polylang functionality, and just adding the
   English content to all languages where translations are unavailable is NOT a 
   good option for me.
 * I was wondering if there’s something I could change in the php code to achieve
   this. My gut tells me that I would just have to add a few lines somewhere, that
   say “IF no translation available, show default language”, BUT I am not a programmer,
   unfortunately.
 * Does anyone have an idea? Any help would be greatly appreciated 🙂
 * Cheers
    Luc

The topic ‘Question: Setting up a “fallback language” through PHP’ is closed to 
new replies.

 * ![](https://ps.w.org/polylang/assets/icon-256x256.png?rev=3433336)
 * [Polylang](https://wordpress.org/plugins/polylang/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/polylang/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/polylang/)
 * [Active Topics](https://wordpress.org/support/plugin/polylang/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/polylang/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/polylang/reviews/)

## Tags

 * [default language](https://wordpress.org/support/topic-tag/default-language/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [programming](https://wordpress.org/support/topic-tag/programming/)

 * 0 replies
 * 1 participant
 * Last reply from: [lucamiras](https://wordpress.org/support/users/lucamiras/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/question-setting-up-a-fallback-language-through-php/)
 * Status: not resolved