• lucamiras

    (@lucamiras)


    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.