Get the detailed URL to a post
-
Hej folks,
I have a small problem. I want to write a small plugin for Multisite Language Switcher… It is working as it should, but i have a small problem with the URL…I want to add a small link with a flag (available in English, German and French) to the index page (list of posts). The language name should be the link to the blog post in that language.
$blogs = MslsBlogCollection::instance(); foreach ($blogs->get() as $blog) { $language = $blog->get_language(); $langname = $blog->get_description(); $siteurl = $blog->siteurl; $siteid = $blog->siteid; }
The siteURL is just the https://subdomain.domain.tld/. How to get the Full link to the different language versions?
https://www.ads-software.com/plugins/multisite-language-switcher/
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Get the detailed URL to a post’ is closed to new replies.