One of the primary functions of Permalink Manager is to help you to bulk edit custom permalinks and improve your website’s SEO score.
In a nutshell, rewrite rules allow WordPress determine the content type and slug from the requested URL. Because of the rewrite rules limitations, WordPress itself does not allow for complete permalink customization.
Permalink Manager addresses this and many other permalink issues. The plugin can update the permalinks of all public post types, including posts, pages, and products, to achieve this goal. The premium version of the plugin may also be used to modify the permalinks of taxonomy terms such as categories, tags, and product categories.
Why is Permalink Manager better than the built-in WordPress permalink system? The plugin works around the shortcomings of the built-in permalink system by using a sophisticated algorithm to identify the requested URLs. To boost the algorithm’s performance, all custom permalinks are saved statically in the database and used afterwards to determine which page should be loaded.
How to bulk edit custom permalinks using Permastructures?
Until you manually edit it using the “URI Editor” the initial URL will be based on the permalink format (specified in the “Permastructure” settings section). In other words, Permalink Manager will apply your permastructure settings to generate the new custom permalink whenever a new post or term is published.
How to edit permastructures?
To modify permalinks in mass, you will need to use the “permastructures” editor. To open it, go to “Permastructures” section through the link in the admin sidebar (“Tools -> Permalink Manager“).
As seen above, you may edit the permastructures for each post type and category independently.
You have total control over how they are adjusted.
How to preview new custom permalink format?
If you are unsure if the new “permastructures” settings are correct, you may examine the sample URL address within the “URI Editor“. The new URL based on your updated permalink format (given in the “Permastructure” settings section) will be shown in the “Default URI” row.
How to use the new permalink formats for existing content?
You should be aware that when you alter the permastructures, the existing custom permalinks will not be automatically updated. For existing permalinks, you will need to use the “Regenerate/reset” tool to apply the new URL format to the old permalinks.
Why is the slug automatically appended?
By default, Permalink Manager automatically appends the slugs to the end of custom permalinks. If you would like to disable this, please go the Permastructure section where you have already configured custom permalink formats. Then, below the input boxes, click on the “Show additional settings” button. Now, when the additional container appears, select “Do not automatically append the slug” and save the changes.
How to quickly manually adjust multiple permalinks at once?
If you would like to manually tweak the custom permalinks, you can use the Bulk URI Editor. The items are grouped by post type and taxonomy for your convenience.
How to remove parent slugs from children permalinks?
Hierarchical and non-hierarchical permalinks
WordPress allows you to register either hierarchical or non-hierarchical content types. If none of these names seems familiar, have a look at the built-in content types. Pages and categories are both hierarchical in the sense that they may have either a parent or a child. If you look at the example below, the content hierarchy should be obvious.
Hierarchical post type (pages):
At the same time, non-hierarchical posts and post tags are impossible to arrange in a “hierarchy tree”. As you can see, their URLs are “flat” and do not include any parent slugs.
Non-hierarchical post type (posts):
It is sometimes advantageous to have shorter URLs for better SEO performance. Removing the parents’ slugs from children permalinks may be an effective way to do this. However, if you are not acquainted with the WordPress codebase, this might be a complicated process. This is where Permalink Manager comes in handy, allowing you to easily shorten WordPress permalinks.
How to remove parent slugs from page permalinks?
To help you understand these instructions, we will explain them using a simple example. As you can see below, the custom post type permalinks (“car”) are hierarchical.
Original permalink format
Our goal is to get rid of the parent slugs that are attached to them.
New permalink format
The steps are straightforward. If you want to remove the parent slugs and make the hierarchical post types “flat” go to the “Tools -> Permalink Manager -> Permastructures” section. Now, scroll down to the post type you wish to update and change its permastructure settings.
By default, the permastructure tag for posts, pages, or custom post types slugs will be %postname% (for posts), %pagename% (for pages), or the name of the custom taxonomy, e.g. %car%.
You will need to add the “_flat” suffix to the permastructure tags if you only want to include the actual post slug in the permalink and not the parent slugs. Thus, the tags should look like this: %postname_flat%, %page_flat%, or %car_flat%.
How to remove parent slugs from category permalinks?
As a general rule, if you use Permalink Manager to add a slug of hierarchical taxonomy terms to custom post type permalinks, the plugin will respect the hierarchy tree. In other words, if a term assigned to a certain post contains a parent term, Permalink Manager will include not only the given term’s slug but also its parents.
You may remove parent slugs from taxonomy permalinks in the same way that you removed them from post permalinks. Simply replace default tags: %term% or %custom_taxonomy_name% with %term_flat% or %custom_taxonomy_name_flat% in the permastructure settings.
Original permalink format
New permalink format
How to use actual titles instead of native slugs in custom permalinks?
The native slugs are used by WordPress in posts’ and terms’ original permalinks. They are produced after the article or term is published and hence they remain unchanged even if you update the post/term title later. In certain cases, it may be preferable to dynamically use the title rather than the “static” slug. Please see the following notes for further information how to make Permalink Manager use the titles in the custom permalinks.
How to replace the slugs with post/term IDs?
You can use Permalink Manager to add element IDs to custom permalinks by using dedicated tag: %post_id% for posts and %term_id% for terms. However, if you want to use it to totally replace the slug, you will need to do a few further steps.
To begin, you must activate the “Do not automatically attach the slug” option attached to permastructure settings in order to use post/term IDs instead of slugs. Furthermore, you will need to use extra code snippet to help Permalink Manager recognize URLs with numeric endings and separate them from lookalike pagination endpoints.
Once it is done, you should adjust the permastructures settings and use %post_id% tag