• Konnichiwa,

    It seems the “Parent Page” of a translated page can only be set to a page that is in the site’s default language.
    The site contains the following page hierarchy. These pages are in the site’s default language:

    Overview
    Overview/Topic1
    Overview/Topic1/Chapter 1
    Overview/Topic1/Chapter 2
    Overview/Topic1/Chapter 3
    Overview/Topic2

    Now these pages, including their hierarchy, should be translated. Pushing the “Add Translation” button creates a translation for a page. However, the “Parent Page” field only lists pages that are in the site’s default language.
    I.e. a translated page can’t be set as a child of an other translated page. Even if both pages share the same language.

    Do you have any ideas how to fix or workaround this issue?

    This happens in WordPress 5.2.2 running Bogo 3.2.1 (Elementor 2.6.6 and Elementor Pro 2.6.1 are installed as well, just in case it matters)

    Your help is much appreciated,
    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Konnichiwa,

    It seems the “Parent Page” of a translated page can only be set to a page that is in the site’s default language.

    No, you can set the Parent Page which is in the same locale as the child page’s.

    Thread Starter Nopalot

    (@nopalot)

    Thank you very much for the quick reply!

    Sumimasen,
    There seems to be something broken when setting the parent of a localized page. I just freshly installed WordPress 5.2.2 and Bogo 3.2.1 – no other plugins or themes are installed.
    Default language on the site is English, German has been added as a second Language.
    Here are the steps to reproduce the problem:

    1. Create a new page “Parent EN” and publish it.
    2. Create a new page “Child EN”. Set “Parent Page” to “Parent EN” and publish it.
    3. Edit page “Parent EN” and push the “Add Translation” button. This will add a link “Parent EN [German]” under Translations. Click the link to edit the page.
    4. We’re now on the German page: Change the title to “Parent DE” and the URL Slug (from “parent-en”) to “parent-de” and publish the page
    5. Edit page “Child EN” and push the “Add Translation” button. This will add a link “Child EN [German]” under Translations. Click the link to edit the page.
    6. Change title to “Child DE” and URL Slug to “child-de” and publish the page.
    7. Now, when you edit the “Childe DE” page again you’ll see the proper url under preview. (which is …/de/parent-de/child-de/). However, under “Page Attributes” -> “Parent Page:” there’s “(no parent)” selected. Opening the dropdown box shows the options “Parent EN” and “Child EN”. In other words, only an English Page can be set as a parent of the German page.

      And here is where it’s getting strange: When you return to the list of Pages (“All Pages” on the left sidebar), you’ll see “Child DE” as a child of “Parent DE”. Which is as it’s supposed to be. However editing “Child DE” still shows “(no parent)” under “Parent Page” and only English pages can be assigned.

    Do you have any ideas how to fix or workaround this? I.e. How to assign a German parent to a German page?

    Domo arigatou gozaimasu!

    • This reply was modified 5 years, 7 months ago by Nopalot. Reason: My Japanese is *unfortunately* really bad
    • This reply was modified 5 years, 7 months ago by Nopalot. Reason: Some more clarifications added
    Plugin Author Takayuki Miyoshi

    (@takayukister)

    Thanks. Seemingly there is something wrong in the interoperability with Block Editor. I’ll look into it and hopefully fix it in the next release.

    Thread Starter Nopalot

    (@nopalot)

    Domo arigatou gozaimasu!

    Switching to the classic editor is a viable workaround to make the parent page assignable again. Thank you very much for sharing this!

    However, there’s one more strange thing that happens on both, the block and the classic editor:
    The site uses Elementor page builder with English as the default language. All English pages in the hierarchy can be opened and edited in Elementor. But as soon as a translation is created for a page that has a parent assigned, Elementor can’t edit the translated page and just displays an error message instead. I’ll get in touch with Elementors support to see if we can sort this issue out.

    Bogo is a pretty awesome plugin btw! It’s small and it does just the one thing that’s required for a multilingual plugin, it’s the perfect solution imho. Thank you very much for providing it!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to set the parent of a translated page to another translated page?’ is closed to new replies.