The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Selective Page Content Localization on Front End Only (2 posts)

  1. sassymonkey
    Posted 5 years ago #

    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:

  2. cy23
    Posted 5 years ago #


    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,

Topic Closed

This topic has been closed to new replies.

About this Topic