This is fixed. I made a small script to get this working.
Because it was a multi language site I just named the site’s to the language they should be in. So the English page is named English, German page is called German etc. Made a small php script to check what the page name is so a variable will fill this one in.
PHP code:
# Check language of page
$currentLang = get_bloginfo();
if ($currentLang == 'English') {
$htmlLang = "en-GB";
}
elseif ($currentLang == 'German') {
$htmlLang = "de";
}
# etc
Related Posts:
- What are options are there to implement a multi language site
- Post and Page Inheritance to subsites in a WordPress Network
- WP Multisite – multilanguage – swich to other language by click, but “same” content
- Using WP Multisite for multi language site? A good option?
- Multisite – how to remove the root ‘/’ site?
- How to manage multiple domain with different languages on each domain with single wordpress installation?
- Should multi-language site using multi-site architecture have default language in base site?
- Multisite use language code as subdirectory
- How to use both British and American English?
- Problem in Internationalizing a plugin built for network level usage
- WordPress multisite change language
- Multiple install for multilanguage. How to?
- Multi language site with same content
- WordPress Multilingual Theme using Multisite
- Should I use a multisite installation to achieve a multi-language site?
- Multilanguage site with two domains
- How to force change Network site multi language subdirectory base URL?
- Is the Multi site functionality a viable option for Country and Language targeting?
- Efficient way to handle translations with Multisite WordPress installation
- Multi-language site on different domains
- How to split existing blog into WordPress Multisites without breaking links?
- Multisite WPLANG won’t save
- Create sub-domain for multisite and multi languages?
- how to have __() translating in languages different from admin?
- Is this possible? A multisite with “www.example.com/en/blog/” and “www.example.com/cn/blog/” (two directories deep)
- Change Woocommerce languange on a multisite install
- Which Multi-language option for WordPress is best from an SEO and Woocommerce perspective?
- Creating a multilingual multisite
- Change language for each website using multisite
- WordPress multilingual site to work with other plugins
- unique identifier for the same pages in a multilanguage/site context
- WordPress Multisite for multi-language
- Structure of multilingual and multiregional directory listing website for translation
- WordPress theme to support single website but with 3 sections for 3 languages
- Multiple Languages for each subsite on a Multisite
- Multisites with different root directory
- Blog switch wpml string translation (multi-site)
- Synchronize wordpress site between two different servers
- Configuring Multisite with subdomains
- How can I have different langauges in wp-admin on a multisite installation?
- Add blog languages to blog-name inside my-site-list in admin-bar
- Help on setting up correct path for sites in multisite-setup
- cannot access subsites in wordpress multisite
- Multiple domains for with a single instal
- multi-language multi-site with REST API
- WordPress Multisite with HTML template as Root
- add_action insert html
- Querying posts from multiple sites in a network?
- is_front_page() malfunction?
- How can I diagnose a slow WordPress admin?
- How to enable a site administrator to edit users in a WordPress network/ multisite setup?
- BLOG_ID_CURRENT_SITE vs. SITE_ID_CURRENT_SITE in WordPress Multisite?
- Shared table across network
- Opinions whether to go multisite VS 3 separate WP installation [closed]
- Multisite: differences between subdomain and subdirectory mode? Can it be switch after installation?
- Ban SiteNames Multisite
- WP MultiSite API – Create new sites
- Multisite – sub-subfolders for certain blogs
- Configure WordPress to read from database only, never write
- WordPress multisite with domain mapping and virtual host on local with fake domain
- Don’t allow access to wp-admin but allow admin-ajax requests to be fulfilled on frontend?
- Timeout While Upgrading Network in Multi-site
- Full Domain Mapping with WP3 in Multiuser Mode
- How to combine multiple sites to WordPress MU
- Installing multisite network admin on sub-domain
- Global searchin multisite but only with one subsite
- Hosting a seperate wordpress project on localhost
- Removing a wordpress multisite installation and preserving the database before migrate to nginx
- How to change user starting role in WordPress MultiSite?
- Add additional non-rewrite .htaccess directives on multisites via mod_rewrite_rules filter
- get_post_type_object() does not work with switch_to_blog()
- How to set up multisite for multi language?
- How to change the parent Domain Name in Multisites Project?
- WordPress MultiSite Theme
- Create Custom Multisite User Role to Reduce Capabilities
- Importing XML didn’t finish, site is now inaccessible
- One blog inside another
- Change Default WordPress MU Blog
- wordpress multisite permalink structure: mostly subdomains but not all
- Is there SEO or related limitations to using Custom Post Types instead of WPMU?
- Multisite WP-API json v2 : can i fetch all comments on all sites with a single query?
- Trying to Decide Between Reverse-proxy and Multisite
- When created sub-directory, can we create a new navbar?
- wp-cli core install –skip-email and –skip-config flags not working on MAMP unknown parameter
- Multisite network subdomains doesn’t work
- MULTISITE: Password issue and Error Cant access site
- trying to install a wordpress multisite in a subfolder and have custom subsite urls
- Accessing WP multisite via IP instead of domain
- Running hosted multisite version of wordpress
- Admin Ajax returns “0 200 OK server error..” in Multi-site sub-site
- How to implement this subdirectory mapping in multisite?
- WordPress MU with subdomain
- How do i get custom metabox data from each multisite blog?
- Multisite login and redirect to users main blog,
- Parse shortcodes from another site in WP Multisite
- Custom pages on all multisite network, to NOT show in wp-admin at all
- WordPress Multisite platform for different city for single db
- How to redirect root blog to a specific one in multilang WP?
- wordpress multisite with already existing subdomain
- Why the sites dropdown in multi-site installation is different from the list of sites when seen full page?