Dennis Ploetner
Forum Replies Created
-
Forum: Plugins
In reply to: [Multisite Language Switcher] Change url of sitePlease read one here: https://codex.ww.wp.xz.cn/Changing_The_Site_URL
Cheers!
Forum: Plugins
In reply to: [Multisite Language Switcher] Possible to add “alternate” meta?Probably just a long-shot but you have the last version installed really? There is also a call to
wp_head()in your header.php?Forum: Plugins
In reply to: [Multisite Language Switcher] Possible to add “alternate” meta?MSLS already creates an output like this (for my website):
<link rel="alternate" hreflang="de" href="http://lloc.de/" title="Deutsch" /> <link rel="alternate" hreflang="it" href="http://lloc.it/" title="Italiano" />Do I miss something?
Forum: Plugins
In reply to: [Multisite Language Switcher] MSLS Failed after UpgradeOK thanks!
Forum: Plugins
In reply to: [Multisite Language Switcher] MSLS Failed after UpgradeStrange! But I need more info … is there anything in the error_log?
Forum: Plugins
In reply to: [Multisite Language Switcher] After WordPress upgraded URL are brokenVery good! I committed it 2 days ago. That might be the reason 😉
MSLS has a function for this but you could just use get_locale().
Forum: Plugins
In reply to: [Multisite Language Switcher] After WordPress upgraded URL are brokenPlease check if version 1.1 works for you.
Forum: Plugins
In reply to: [Multisite Language Switcher] MSLS Failed after UpgradeWould you please describe your problem? I run 4.7.2 on several websites and have no problems.
Forum: Plugins
In reply to: [Multisite Language Switcher] I want to display 2 languages only with 2 flagsPlease indicate the website 😉
Forum: Plugins
In reply to: [Multisite Language Switcher] Order Flag and languageOK, tell me more about your use case.
Forum: Plugins
In reply to: [Multisite Language Switcher] Order Flag and languageYes, it is. Do you need help with that?
Forum: Plugins
In reply to: [Multisite Language Switcher] Order Flag and languageIt orders the output by language code or – if you set this option – by description. Does this answer your question?
Forum: Plugins
In reply to: [Multisite Language Switcher] Link to different custom post typeYou can map them via code (in your functions.php for example):
function my_msls_options_get_permalink( $url, $language ) { $locale = get_locale(); $needle = '/product/'; switch ( $locale ) { case 'es_ES': $url = str_replace( $needle, '/producto/', $url ); break; case 'it_IT': $url = str_replace( $needle, '/prodotto/', $url ); break; } return $url; } add_filter( 'msls_options_get_permalink', 'my_msls_options_get_permalink', 10, 2 );Forum: Plugins
In reply to: [Multisite Language Switcher] “This post is also available in…”Seems that everything just works, isn’t it? 🙂