Multisite custom rewrite urls
Your rule do not match the structure of the url you want. The rule basically handles urls with only a country. What is the right rule? you will need to look at the kind of rules the plugin produces and mimic them.
Your rule do not match the structure of the url you want. The rule basically handles urls with only a country. What is the right rule? you will need to look at the kind of rules the plugin produces and mimic them.
just to add comment for future if somebody have same problem.. polylang from version 1.8 will add options to add flag from plugin settings page, right now you can get this version from link https://wordpress.org/plugins/polylang/developers/ just download “Development Version (svn)” but only if stable version 1.8 its not released
What you could do is add a custom field to the page, let say we name it “custom_class”. Then you echo it to HTML class. class=”menu-item <?=get_post_meta( get_the_ID(), ‘custom_class’, true );?>”
Conditionally (cpt) filter previous and next_post_link
I’m interpreting that the static page you intend to show is a static page for the home page of your site. If that’s the case, and the static page is truly static, I recommend saving the page as index.html and saving it (via ftp) right next to your WP index.php file in the root folder … Read more
The plugin WPGlobus allowed me to achieve what I stated in the question.
Function get_locale always returns en_US in plugin?
Polylang plugin translation problems
phantom language switcher
You can disable the translate of your cpt in polylang and use translated pages to display your cpt posts. In your page template, detect if the current language is english and use your custom translation code to display those translated fields. I want an URL like : www.domainame.com/en/ You can set it up in the … Read more