• Resolved Xaifu

    (@xaifu)


    Hi!

    I have created a WordPress Multisite in two languages using multilingualpress.

    I have a CPT called projects in which I am using WP Show Posts to create a listing at the end of each project that shows 4 other random projects.

    The WP Show Posts shortcode works and the title and image are displayed but the links do not work.

    If I use the same shortcode on a page other than a project, the links does work.

    The website is in two languages and the same thing happens in both. If I deactivate multilingualpress, the problem disappears.

    Any solution to this problem?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Elvin

    (@ejcabquina)

    Hi there,

    That’s quite strange.

    multilingualpress seems to be messing up with the loop’s get_permalink()
    https://github.com/tomusborne/wp-show-posts/blob/35e410d7800273fc66f211c0f80d553e95d17f83/wp-show-posts.php#L441

    Unfortunately, we can’t control what that plugin does. It may be best to ask Multilingualpress support for any possible reason why it occurs.

    Thread Starter Xaifu

    (@xaifu)

    Thanks for your help ejcabquina!

    I have contacted Multilingualpress support to notify them about the problem.

    Plugin Support Elvin

    (@ejcabquina)

    No problem. Let us know how it goes.

    Thread Starter Xaifu

    (@xaifu)

    MultilingualPress support team has kindly given me a way to fix the error.

    When editing the network sites in /wp-admin/network/sites.php, it is necessary to register the custom post type slug in the tab Post Type Slugs. The CPT slug is empty by default.
    When the CPT slug is not registered, MultilingualPress cannot determine the connection between posts.

    So in my case that I had a CPT called projects I had to register/write the slug: projects for English and proyectos for Spanish and the permalinks in Wp Show posts worked again.

    Plugin Support Elvin

    (@ejcabquina)

    ahh that makes perfect sense! There was nothing to refer to because the slug was empty.

    Thanks for sharing it with us. Glad you got it sorted. ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Weird bug in multisite with multilingualpress’ is closed to new replies.