Is it posible to translate a url prefix?

I would use the following to check for each language and then output the translated permalink structure. For instance: if(ICL_LANGUAGE_CODE==en){ //translate your english the_prefix here } if(ICL_LANGUAGE_CODE==de){ //translate your german the_prefix here } I’m not sure about this, but I would think that you should be able to use the icl_register_string() and icl_t() functions to … Read more

Include language variable in url

In your example Change this: public function custom_permastruct() { add_permastruct(‘language’, ‘%lang%’, false); } to this: public function custom_permastruct() { add_rewrite_tag(‘%lang%’,'(lang)s’,’post_type=”); add_permastruct(“language’, ‘%lang%’, false); } Please note that this will only work on WordPress 3.4+ Other ways of doing it: You need to create a new permalink and after to set some rewrite rules. The function … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)