New answers tagged


There are various ways to achieve it. The most simplest one could be to make a new page and with name "en" so the slug will be Now make the "en" page as parent of my-page-name or in other words make my-page-name as a child of en. So slug will be


It works for me. add_filter('post_link', 'locale_permalink', 10, 3); add_filter('post_type_link', 'locale_permalink', 10, 3); function locale_permalink($permalink, $post_id, $leavename) { if (strpos($permalink, '%category_slider%') === FALSE) return $permalink; $post = get_post($post_id); if (!$post) return $permalink; if ($post->post_type != '...

Top 50 recent answers are included