• Hi,

    I´m using Custom Post Types: Cat1, Cat2 and a CategoryLink between Cat1 and Cat2 for quering Links between. – This works fine.
    Also I use MSLS for linking pages in my MS – this works fine too.
    For switching I use the the_msls() in my Header menu.

    Now I´ve encountered a strange behaviour:

    – Create Cat1 Post in DE
    – Create Cat1 Post in EN and link via MSLS -> OK
    – Create Cat2 Post in DE
    – Create Cat2 Post in EN and link via MSLS -> OK
    – Create CategoryLink between Cat1 and Cat2 in DE
    – Create CategoryLink between Cat1 and Cat2 in EN
    – MSLS Link is ok from DE to EN in Cat1 and Cat2
    – but in Cat2 from EN to DE its broken and points to my CategoryLink – Cat1 is OK
    – Setting the Link via MSLS in EN results in working MSLS links in EN, but in DE it points to the CategoryLink

    Is this a bug or a problem by me / in my setup? Workaround?

    https://wordpress.org/plugins/multisite-language-switcher/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Dennis Ploetner

    (@realloc)

    Would you please explain what you mean with “broken”? Just describe it with a relative link if you prefer… Setting a link in one language should set the other language(s) automatically so this is indeed strange.

    Thread Starter ivyemm

    (@ivyemm)

    >Would you please explain what you mean with “broken”?

    Instead of pointing to the linked Post it points to my relation post.

    Cat1-Post1 < Relation Post > Post1-Cat2
    So, the Relation Post has a Post in Cat1 and a Post in Cat2 as parents

    >Setting a link in one language should set the other language(s) automatically
    Sure, this is what I expect here.

    It seems, that the wrong link is generated/returned.

    Thread Starter ivyemm

    (@ivyemm)

    de/Cat1/Post1 points to /en/Cat1/Post1
    en/Cat1/Post1 points to /de/Relation/Post100

    Arg, hard to explain – maybe i have to draw a picture 😀

    Its this kind of setup:
    https://wp-types.com/documentation/user-guides/many-to-many-post-relationship/

    Thread Starter ivyemm

    (@ivyemm)

    Additional findings:

    If I click Update in EN, to link the post in DE, the EN post is correct linked to the DE post. If I open the DE post, it show now link to EN. If I open the Relation-Post, it shows a msls link to the EN post.

    So, the wrong link is not read false. Something strange happens, while updating the link in the opposite language – of course only, when a child post is linked.

    Thread Starter ivyemm

    (@ivyemm)

    Typo… the now should mean NO :X

    Plugin Author Dennis Ploetner

    (@realloc)

    It’s hard to understand what’s going on there. I should see at least the definition of the custom post type or everything that is useful for having a chance to replicate the problem.

    Thread Starter ivyemm

    (@ivyemm)

    Should I setup a demo site and provide you credentials to login?

    Plugin Author Dennis Ploetner

    (@realloc)

    Yes, this is probably the best idea.

    Thread Starter ivyemm

    (@ivyemm)

    How to contact u via private Message?

    Plugin Author Dennis Ploetner

    (@realloc)

    Just send me the details via email: re@lloc.de

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Problem with MSLS and Custom Post Type Links?’ is closed to new replies.