Adds support for permalink translations and fix some QTranslate deficiencies since wordpress 3.0
Qtranslate is a nice plugin but unfortunately today is outdated. Qtranslate Slug is an addon to QTranslate, which adds support for permalinks translations and fix some QTranslate deficiencies since wordpress 3.0.
Version 1.0 has been written from scratch using OOP. The code has been structured better, the functions have been marked and commented and everything is better integrated with Wordpress API.
This plugin works with Qtranslate since 2.5.8.
qtrasnlate_slug
table. That means slugs now are stored on meta tables and installation creates a termmeta table with some new core functions to access/save data, based on simple term meta. Upgrade process when the plugin updates from older versions.post_type
/taxonomy
), and adds a progressive number in this case. Works on ajax requests for example when new taxonomies are created in edit post page.You can also check the project website hosted on GitHub. Thanks for use this plugin!
This plugins requires Qtranslate installed previously, if not, it will not activate.
qtranslate-slug
to the /wp-content/plugins/
directory.It works with posts and pages, but with other content type?
This plugin allows to translate slugs of: posts, pages, custom post types, categories, tags and custom taxonomies.
Do I have to configure anything?
If you want to translate also the base permastructs (ex. category, tag, etc). Visit the plugin settings page in the admin Settings/Slug options
How can i insert a language selector in my theme ?
You can choose to:
<?php if (function_exists('qts_language_menu') ) qts_language_menu('text'); ?>
. Options are: dropdown
, text
, image
, and both
.Appears an error 404, what can i do?
In the admin go to Settings/Permalinks or Settings/Slug options and save.
I can't manage translations in Nav Menus.
That's because language selector metabox is hidden, if you are in admin nav menus screen, press the button Screen options (on top and right) and after, check the option Languages. It will appear a Language meta box on top of the left sidebar.
Edit page for: post / page / post_type, you can see the meta box for translated slugs on top and right
Add new taxonomy page
Edit taxonomy page
Qtranslate Slug options page for translate base permastructs of post_types and taxonomies
1.0
qtrasnlate_slug
table. That means slugs now are stored on meta tables and installation creates a termmeta table with some new core functions to access/save data, based on simple term meta. Upgrade process when the plugin updates from older versions.post_type
/taxonomy
), and adds a progressive number in this case. Works on ajax requests for example when new taxonomies are created in edit post page.0.9
0.8
0.7 Zapo
0.5 and 0.6 enhanched by Marco Del Percio
1.0
Major version, the plugin has been rewritten. Better performance, and some enhancements.
0.9
This version fix some bugs and allow multilanguage in nav-menus.
0.8
A lot of slugs content allowed
0.7 This version allows TLD domain option for a different Qtranslate fork maded by Zappo
Plugin filters reference:
qts_validate_post_slug
filter to process the post slug before is saved on the database.args: $post (object), $slug (string), $lang (string)
qts_validate_term_slug
filter to process the term slug before is saved on the database.args: $term (object), $slug (string), $lang (string)
qts_url_args
filter to process the entire url after it has been generated.args: $url (string), $lang (string)
qts_permastruct
filter to process the permastruct, used for change the base.args: $permastruct (string), $name (string)
Todo