leskam
Forum Replies Created
-
Forum: Plugins
In reply to: [Sublanguage] Use permalink tags in language optionsBut permalinks are overwritten by Sublanguage. So is it possible to use the original WordPress tags like %postname%, %post_id% etc in Sublangauge settings -> Post Type Permalink Base?
Hmm that hook’s hides flags but i want to remove whole Language column. Is it possible ?
Wow its working! (In
add_rewrite_rule
too)Thanks!
I’ve got another question because I can’t found page with list about all WPGlobus functions. Is it exists ?
I call this issue on add_action(‘init’, […]); on plugin .php script
I’ve just edited rewrites only by WordPress function except .htaccess (WordPress do that)
My “target” is use ecommerce.php file by add_rewrite_rule regardless of the selected language. I want to use /account/cart for each language ( /en/, /fr/ etc)
My example of function add_rewrite_rule:
add_rewrite_rule('^account/cart(/|)$', 'ecommerce.php?account&option=cart', 'top');
When I put on browser address like: domain.com/account/cart it works good but when i change language e.g. to EN
domain.com/en/account/cart not working.WPGlobus does not support add_rewrite_rule WordPress function ?
Probably badly I explained what I mean.
I created plugin with new type of pages with my own rewrite_rules via add_rewrite_rule WordPress function.
When I use my own rewrite_rules with main site language everythink works fine, but when i change language e.g. to English (en tag in url) rewrite rules not working. So my question is that whether I must create another add_rewrite_rule’s hooks for rest of languages or WPGlobus got function for quick resolve this ?