• Resolved kodohunter

    (@kodohunter)


    Hi

    I’m using a multisite, and with this tool mapped the sites from wp2.wp.foo to wp2.foo etc. Now I’m creating a plugin that would fetch new posts from the sub-sites and post them on the main site wp.foo.

    Now, when I try to create links to the original posts, wp2.wp.foo/post ofc won’t take me anywhere anymore. I can’t really hardcode the links, since the site names will eventually change. So is there any way to get the new address based on the old address?

Viewing 1 replies (of 1 total)
  • Thread Starter kodohunter

    (@kodohunter)

    Eh, ask for a thing just to figure it out yourself in a moment.
    I can get the site names from my wp_domain_mapping database table based on the blog_id

    • This reply was modified 9 years ago by kodohunter.
Viewing 1 replies (of 1 total)

The topic ‘Getting the mapped addresses’ is closed to new replies.