Linux 软件免费装

Cosmo Multilingual Kit for Polylang

开发者 bakhods
更新时间 2026年11月20日 19:13
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

acf polylang translation multilingual slugs

下载

1.1.1 1.2.0 1.1.0 1.2.1 1.2.3 1.2.2

详情介绍:

Polylang free covers the basics. Building a real multilingual theme on it, you quickly run into things that only Polylang PRO or WPML handle. This plugin adds them, configured from your theme in code so the setup travels with the theme rather than the database. Requires Polylang 3.7 or later. Cosmo Multilingual Kit for Polylang is an independent, unofficial plugin. "Polylang" is a trademark of WP SYNTEX; this plugin is not affiliated with or endorsed by WP SYNTEX, and the name refers to that plugin solely to describe what this one works with.

安装:

  1. Install and activate Polylang 3.7 or later, and add your languages.
  2. Upload the plugin through Plugins - Add New - Upload Plugin, or install it from the plugin directory.
  3. Activate Cosmo Multilingual Kit for Polylang.
  4. Add the cosmo/multilingual_kit/config filter to your theme (see Configuration in the description) and flush permalinks under Settings - Permalinks.

常见问题:

I switched an existing site to per-language options and the settings look empty

Values saved before were stored without a language. Run cosmo_mlk_migrate_legacy_options() once to move them to the default language.

Does it work with Polylang PRO?

It targets Polylang free. With PRO active, the slugs, bases and duplicate modules switch themselves off, since PRO covers them. An explicit modules entry in the config overrides that.

Which modules switch themselves off?

The Plugins screen lists them with the reason:

  • slugs and bases and duplicate with Polylang PRO.
  • slugs when Polylang sets the language from the content: with no language in the URL, shared slugs cannot be told apart.
  • options with ACF Options For Polylang, which stores options per language on its own.
  • media when Polylang media translation is on, as every language then has its own attachment.

Which URL modes are supported?

Language as a directory (with or without /language/), as a subdomain, or as a domain. Sites installed in a subdirectory work too.

Can I duplicate WooCommerce products?

No. WooCommerce keeps product data outside post meta, so a plain copy would give a broken product.

更新日志:

1.2.3 1.2.2 1.2.1 1.2.0 1.1.1 1.1.0 1.0.0