Support » Fixing WordPress » using pages hierarchy with WPML gives me 404…

  • hello wordpress users,

    Firstly, I want to use pages hierarchy as the structure of my last website.
    I mean I don’t use category, but parent pages and children pages.
    I’ll use posts only for the blog part, in the future.

    Ok it seems to work fine

    Secondly, I’m using WPML too.
    very nice plugin for multilingual management & workflow.
    I’m using the “per categories” mode: the main site is “domain.com/” and the translation is “domain.com/fr” etc.
    It works.

    The problem is using these 2 ways (pages hierarchy as structure + WPML)
    I made 4 pages:
    page-parent-lang1 (link: domain.com/page-parent OK )
    — page-child-lang1 (link: domain.com/page-child OK )
    page-parent-lang2 (link: domain.com/fr/page-parent OK )
    — page-child-lang2 (link: domain.com/fr/page-child 404! )
    the translation part, management, link are ok.

    the problem is the link (the permalink)
    it gives me one 404 as shown before

    any ideas?
    is it a kind of bug ?
    did I set badly the permalink ? (actually, it is : /%category%/%post_id% as custom but it isn’t involved in page .. no?)

    all the best,

Viewing 1 replies (of 1 total)
  • the permalink on PAGES not posts should be in the format

    page-parent-lang1 (link: domain.com/%post_id%/
    — page-child-lang1 (link: domain.com/%parent_id%/%post_id%/
    page-parent-lang2 (link: domain.com/fr/%post_id%/
    — page-child-lang2 (link: domain.com/fr/%parent_id%/%post_id%/

    post_id – can be either the page_ID number, or the page_name
    parent_id – can be either the page_ID number, or the page_name
    page_name – is the slug name, not the page title

    if you want to use the format –
    — page-child-lang1 (link: domain.com/page-child
    — page-child-lang2 (link: domain.com/fr/page-child
    then you should really be using the post_ID number as you’ve removed hierarchical sorting and your database will get hammered with queries and redirect rules build up (see the discussion about it in trac).

Viewing 1 replies (of 1 total)
  • The topic ‘using pages hierarchy with WPML gives me 404…’ is closed to new replies.