Set permalink to (Post Name)
or
http://www.example.com/[blog_name]`/%post_id%/%postname%/`
Add following code to functions.php of your theme:
add_filter ( 'alias_rule', 'xili_language_trans_slug_qv' ) ;
function xl_permalinks_init () {
global $XL_Permalinks_rules;
if (class_exists('XL_Permalinks_rules') ) {
$XL_Permalinks_rules = new XL_Permalinks_rules ();
add_permastruct ( 'language', '%lang%', true, 1 );
add_permastruct ( 'language', '%lang%', array('with_front' => false) );
}
}
Related Posts:
- Change the “page” slug in pagination
- Change author base slug for different roles
- Using custom/dynamic “slug” for a page
- Display posts with author in the url with custom post types
- How to seamlessly redirect between different archive and singular slugs?
- How to add dot(“.”) in post slug
- How to change default page slug?
- Handle category name URL rewrite before different post type slugs
- custom htaccess rewrite rule for page
- Why is there /index.php/ in all my links? How do I remove it?
- Multilingual theme: Changing locale based on URL
- How make a multi language routes, with rewrite rules or rewrite endpoints?
- Multiple Permalinks for Same Post
- Adding more pages to author pages
- Using Blog Parent Slug on Blog Posts Only
- Load a template page based on part of slug in wordpress
- Removing “category” from URLs then “add_endpoint()” won’t work…
- Use custom template on certain URLs
- How do I change attachment slug from name to id
- Access files at new location using old file paths
- Adding special characters to slug?
- Rewrite URLs – Custom Post Type – Post Slug, Taxonamy Slug
- Translate custom post type and taxonomy slug in URL?
- Preserve old website URL structure after migrating to WordPress
- WPML language switcher for custom rewrite rules
- How to change the Author Slug from Username to Nickname and deal with Special Characters
- How to change custom post type slug
- Disable WordPress from changing URL slug when post is published
- Using URL rewrite to add custom URL for custom post type
- One off rewrite for single post-type slug (show normal page with same URL instead)
- Can’t use a specific custom URL (slug)?
- How to transform multiple parameter URL to clean URL
- Make the home page’s slug visible in the browser’s URL bar
- Trying to add array of paths to post permalink
- Changing the wordpress default search url to something like – …example.com/search?query=keyword
- How to add dot(“.”) in post slug
- WordPress is adding “category” word before my actual category name in url (and this is unsolicited)
- Change author base and slug in author link
- WordPress numeric (yearly) page names / disable yearly archives
- Post & Page with same slug
- How to add 2 variable rewrite rule?
- taxonomy term in URL slug won’t forward to the correct term for custom post like it does for default categories/normal posts
- Remove Page Slug from URL
- Needed to change slug to access page
- What’s the best approach to do this?
- Pagination posts. Url format
- Change the slug ( url ) to a sequence number starting from 0 in the custom record type?
- Switch WordPress to non-absolute links? [closed]
- Does WordPress keep track of a post’s URL history and provide automatic redirects?
- How to retrieve $_GET variables from rewritten URLs?
- Dynamic Endpoints
- Need help with rewrite_rules_array
- Remove parent slug for child pages
- Hijacking the URL for filtering
- WordPress 404 unless there is a space in url
- Add .html extension to only one page in my WordPress site
- How to get “extended” path info from URL in a plugin
- Custom URL routing based on cookie value
- Rewriting rules: difference between ‘init’, ‘rewrite_rules_array’, ‘generate_rewrite_rules’?
- url rewriting for most recent post
- Cleanup URL for a custom page in wordpress
- custom template rewrite
- WordPress Redirecting Non Category Pages /page/nnn to their Canonical URLs
- How to create a profile page for specfic / custom user role members?
- QSA Rewrite Rule
- Persist url parameter passed by a referrer website? [duplicate]
- How to pass url as a parameter in a add_rewrite_rule
- Per Page Permalink Structure for Page Post Type
- Customise particular RSS permalink
- wordpress how to replace url /bar with foo/bar for custom post type
- Removing “www” from a site URL
- Replace “http://localhost:8888/” by website URL in WordPress
- Custom rewrite rule not working
- Creating a folder structure
- How to Detect That WP is Using Mod Rewrite or $_GET variables?
- How can I allow trailing slashes on some URLs without a redirect, but not on others?
- Adding the amp url prefix to the beginning
- Redirect to new domain that serves new and different content
- How to change search page url so that it still returns a page when there’s no search query specified?
- Custom taxonomy named ‘tag’ return 404 page
- How to redirect to a login virtual page?
- Multiple permalink with and without category for same post
- Custom Params in URL
- Url rewrite, add rule, redirect as POST request?
- Broken page redirect
- Add query arg for pretty permalinks in wordpress way
- Homepage cannot be found
- How to regenerate slugs for categories and tag converting non-Latin characters?
- Get custom posts by segment of the URL
- Add ReWrite from Old Pages to WordPress (remove .php)
- add_rewrite Rule
- How to show my application as referral in WordPress Stats
- Fully mask *all* traces of WordPress installation subdirectory?
- Appending parameters to WordPress query string in backend
- rewrite rule of post when accessed from archives pages
- Help to cleanup this code
- Listing Authors – URL Formats [duplicate]
- Custom slugs with dates & IDs on Custom Post Type
- Redirect all URLs in WordPress and Permalink to by country to subdomain
- How to customize the url structure?