Support » Fixing WordPress » Selective Page Content Localization on Front End Only

  • I’ve been hunting about without success on a method of selective page localization on the front end content only.

    I only want to have a section of the front end content pages be in two languages.

    My example includes a few pages of information on upcoming Day of the Dead activities. I want parallel pages in both English and Spanish.

    Create matching English and Spanish pages with a custom field key of “language” and “en” for English versions. Alternately, use “es” custom field for Spanish versions.

    Finally, use some php to create two nav buttons at the top of the page or aside that allow switching between the two languages by accessing the custom field language designations.

    Not sure about multipage navigation yet though. Obviously, I want users who prefer Spanish to stay in the Spanish pages. Would be easy, if less elegant, to simply manually drop in next / prev links that go to the next English page from the previous English page (and likewise for Spanish).

    There’s a lot of info about using mo and .po files for localizing plugins and themes. I doubt this is any help to me since this seems to be more about the back end as opposed to parts of content on the front end.

    I found one article that looks promising but it either doesn’t work or there’s not enough info for me to understand since it failed:

Viewing 1 replies (of 1 total)
  • Hello,

    I wrote the mentioned blog post and was surprised to read that it didn’t work for you. If you like, I can help you a bit. What problems did you face?

    Please send me an e-mail if I can help. Would be good to correct my post 🙂

    Best regards,

Viewing 1 replies (of 1 total)
  • The topic ‘Selective Page Content Localization on Front End Only’ is closed to new replies.