Custom Polylang Slugs
A WordPress plugin that allows you to customize URL slugs for custom post types in different languages using Polylang.
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/vannamhh/custom-polylang-slugs/archive/refs/heads/main.zipA WordPress plugin that allows you to customize URL slugs for custom post types in different languages using Polylang.
Description
Custom Polylang Slugs extends the Polylang plugin by allowing you to set custom URL slugs for your custom post types in each language. This gives you better control over your multilingual URL structure.
Features
- Custom URL slugs for each post type in different languages
- Easy-to-use settings interface in WordPress admin
- Automatic URL rewriting based on the current language
- Compatible with Polylang's language URL formats
Requirements
- WordPress 5.0 or higher
- Polylang plugin installed and activated
- PHP 7.0 or higher
Installation
- Upload the
custom-polylang-slugsfolder to the/wp-content/plugins/directory - Activate the plugin through the 'Plugins' menu in WordPress
- Go to Settings > Custom Polylang Slugs to configure your URL slugs
Usage
- Navigate to Settings > Custom Polylang Slugs in your WordPress admin
- For each custom post type, enter the desired URL slug for each language
- Click 'Save Changes'
- Go to Settings > Permalinks and click 'Save Changes' to update the URL structure
Example
If you have a custom post type 'products' and want different slugs for different languages:
- English:
yoursite.com/en/products/ - French:
yoursite.com/fr/produits/ - Spanish:
yoursite.com/es/productos/
Support
For support or feature requests, please create an issue on the plugin's GitHub repository.
License
This plugin is licensed under the GPL v2 or later.
Author
Van Nam - wpmasterynow.com
Changelog
1.0.0
- Initial release
- Custom URL slug support for custom post types
- Multi-language URL support
- Settings page implementation