How to add a prefix query_var to any Wordpress to create different languages

0

I get a lot of this Wordpress rewrite. What I want is to create a prefix that takes all the pages, archives, posts, to determine the language of translation via php. Even if this query_var works on home. example:

site.com | site.com/en | site.com/en

site.com/en/archive

site.com/en/postname

site.com/custom_post/postname

and then retrieve the language in a simple way, type get_query_var ('c_lang');

    
asked by anonymous 10.03.2018 / 19:12

0 answers