Problem with bloginfo() on multisite
-
I want to get the title of the main blog on multisite. The Polylang is enabled for all site in the network and title string on main blog is propely translated. I use the following code to get this title:
switch_to_blog(1); $output = get_bloginfo($show); restore_current_blog();
As result I always get the title in default language no matter what current language is.
I use this approach to get the menus from the main site and it works fine. But in this case I need some assistance.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Problem with bloginfo() on multisite’ is closed to new replies.