• Hi, thanks in advance for the help.
    What I am trying to do is for example from a page link to the same page but in the other blog.
    I have a page under http://www.domain.com/page and http://www.domain.com/site2/page and for example I want to create a link that go to current page(in http://www.domain.com/page) but in the second site (www.domain.com/site2/page)
    And this links will be in the header that is why I need somethin lake a variable that always links to the current page but in the second site or if you are in the second site it links to the current page but in the first site. Something like <a href="www.domain.com/site2/<?php current_page();?>">Link Current Page Site2</a> and in site2 <a href="www.domain.com/<?php current_page();?>">Link Current Page Site1</a>
    I hope I managed to explain myself :S

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    You want a menu link to always go to the same page NAME but the sirte would be variable?

    Use get_blog_details: http://codex.wordpress.org/WPMU_Functions/get_blog_details

    Thread Starter Jorge Díaz

    (@jdiaz1302)

    Yes, because I am using multisite with multilanguage plugin but the developer says that the plugin has a bug so it is linking to pages that don’t exist in the other site (second language) I was thinking looking for this as a workaround. I have create a clone of the site Now I have 2 sites with the same pages created the only difference is that in the main site content is in main language and in the other site content is in the second language, I have manually added a language switcher but if you go to http://www.domain.com/contact and click to change language it is linking to http://www.domain.com/site2/ (the home page) not contact for example. The switcher is in the header, that is why I was looking some kind of function, so when the visitor goes to other pages and clicks to change language it redirects to the same page that was viewed but in the second site (in other language). I am checking out the information that you gave me, thanks in advance, I am going to see if I make it work.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Link same page in 2 different blogs from multisite network’ is closed to new replies.