WordPress.org

Ready to get started?Download WordPress

Forums

Menu Label is blank when slug is the same (5 posts)

  1. HarroH
    Member
    Posted 1 year ago #

    Hi All,

    I'm running the xili language plugin on our website to make it multilingual. This makes it that I have created a default page with the title CONTACT in both English and Dutch. The are both part of a main page (NL and EN) so in the end it creates the slugs:

    http://www.domain.com/nl/contact
    and
    http://www.domain.com/en/contact

    No problem there, slug is unique so WordPress gets it. However, the problem starts when I try to add both pages to a menu. I have created 2 menu's, one for English and one for Dutch. The correct menu is added based on the language the user is viewing the website in. However, when I add the English version of the contact page to the English menu and the Dutch version of the contact page to the Dutch menu is seems that WordPress only uses the slug after the slash (so, CONTACT) to look up the correct page for the labeling. Because when I view the menu, the link is displayed in the source code but the label is not showing. WordPress doesn't seem to be able to find the label.

    Questions:
    - is my assumption correct that WordPress only used the slug after the slash to bind the page to a menu?
    - is there a way to solve this problem?

    Thanks in advance.

  2. Michel - xiligroup dev
    Member
    Posted 1 year ago #

    Please send more details (links) via the support/contact form of http://dev.xiligroup.com..

  3. Marcel Andrew
    Member
    Posted 1 year ago #

    I try to reproduce and put both pages (en/contact and nl/contact) in a menu content... both menu items with label are displayed... WP don't do confusion...
    M.

  4. HarroH
    Member
    Posted 1 year ago #

    @Marcel; thanks for your reply, did you check it in the admin only or @ the front-end as well. My problem is only at the front-end.

    @Michel; thanks for the suggestion to your own forum. But I'm not sure its a xili problem and I don't really want to be bouching between 2 support forums.

    Let me show some more information:

    Screenshot of my English Menu:
    http://www.harroheijboer.nl/temp/en_gb.png
    (note the URL at the bottom of the browser)

    Screenshot of the NL Menu:
    http://www.harroheijboer.nl/temp/nl_nl.png
    (note different slug in the bottom but same names of pages).

    The ending result in the source code is:
    For English:

    <li><a href="http://localhost/page/en/contact/"></a></li>
    <li><a href="http://localhost/page/en/disclaimer/"></a></li>

    For Dutch:

    <li><a href="http://localhost/page/nl/contact/"></a></li>
    <li><a href="http://localhost/page/nl/disclaimer/"></a></li>

    Note that the URL's are working correct but the labels are blank

  5. Marcel Andrew
    Member
    Posted 1 year ago #

    work well on both side !

    can you show pages list and hierarchy ?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags