Dennis Ploetner
Forum Replies Created
-
Forum: Plugins
In reply to: [Multisite Language Switcher] Entry links on multi site missing "blog" in URLYou can put the screenshots anywhere. The only thing is that I prefer to not to have to register me for a new service. π
The problem in you case is that MSLS is indeed processing the rewrite rule but has no indication for a prefix so it removes the blog part. It is important to understand this to be able to offer a proper solution…
Forum: Plugins
In reply to: [Multisite Language Switcher] Entry links on multi site missing "blog" in URLI have no idea how your setup is. You refer to a test of another site and I have still no useful info how the permalink settings of these sites are done. Remember these are set in every single site. What I offered is a work-a-round to add the blog-slug to posta btw…
Forum: Plugins
In reply to: [Multisite Language Switcher] Entry links on multi site missing "blog" in URLOK, all this is a little bit clearer now. The blog part is normally set in the primary blog of a multisite installation.
You can override the get_permalink function in the plugin with a filter. You should test this but you can then just put it in your functions.php:
function my_msls_options_get_permalink( $url, $language ) { if ( 'post' == get_post_type( get_the_ID() ) ) { $count = 1; $url = str_replace( home_url(), '', $url, $count ); $url = home_url( '/blog/' . $url ); } return $url; } add_filter( 'msls_options_get_permalink', 'my_msls_options_get_permalink', 10, 2 );This will add /blog/ to every post.
Cheers,
Dennis.Forum: Plugins
In reply to: [Multisite Language Switcher] Entry links on multi site missing "blog" in URLI know the configuration of multisites very well as you can probably imagine. π
And the interesting part is – because the WordPress function get_permalink doesn’t know that there is a prefix – how do you set ist that there is a /blog/ prefix: a plugin, did you write /blog/ in the permalink config… ?
Forum: Plugins
In reply to: [Multisite Language Switcher] Entry links on multi site missing "blog" in URLIt is, of course, a multisite installation. The Multisite Language Switcher does not work in a single site.
So you have a multisite with subdirectories instead of subdomains. How did you set the permalinks for the posts?
Forum: Plugins
In reply to: [Multisite Language Switcher] Entry links on multi site missing "blog" in URLThis should work out of the box with posts. Please provide a URL where I can check this.
There is at least one plugin (but I never tried it) that let you choose the language in the dashboard by user … https://ww.wp.xz.cn/plugins/r3df-dashboard-language-switcher/
Forum: Plugins
In reply to: [Multisite Language Switcher] Entry links on multi site missing "blog" in URLHi,
do you refer to posts as entries? Or is this another post_type?
Yes, this is the normal behaviour of the plugin. The HTML select boxes are not preferable since they are the reason for fatal errors in installations with lots of posts. Of course, you can file a feature request: https://github.com/lloc/Multisite-Language-Switcher/issues
π
Forum: Plugins
In reply to: [Multisite Language Switcher] [DE] hreflang-Auszeichnung fΓΌr de_atSehr gut!
Gruss,
Dennis.Forum: Plugins
In reply to: [Multisite Language Switcher] Flags not seen in front office, only a linkPlease ask the author of the theme what you should do … https://ww.wp.xz.cn/support/theme/hightide
Let me know,
Dennis.Forum: Plugins
In reply to: [Multisite Language Switcher] Different languages of the primary siteOh, there are no files to copy … these 2 domains should point to the same installation. This is one of the advantages of the multisite.
Hi,
thanks … there is a filter in the output class that could fit your needs:
/** * Returns HTML-link for an item of the output-arr * @since 0.9.8 * @param string $url * @param MslsLink $link * @param bool current */ apply_filters( 'msls_output_get', $url, $link, $current );You could store the inputs in a static var for example. There is also a function
get_the_msls()but this is already preprocessed …Cheers,
Dennis.Forum: Plugins
In reply to: [MslsMenu] en_GB on hover, how to changeHave a nice walk! π
Yes, you can configure this with different users using the “reference user” option in the settings of the Multisite Language Switcher.