Permastructures act as templates for custom permalinks in the Permalink Manager plugin. They play a key role by giving you control over how URLs should look like for new content items.
After you publish a new post or term, its URL is generated following the default format defined in the Permastructure settings.
If you change the URLs of many pages or posts that are already indexed by search engines, it may negatively affect your SEO performance if not handled with care. For this reason, changing those settings will not automatically update the old URLs, preventing unintended changes to already established links.
This helps preserve existing links, while still letting you apply customized URL formats to new pages without risking damage to your SEO results. However, if needed, you can still update older URLs to match your new structure using "Regenerate/reset" tool.
Modifying Permalinks with Permastructures
How to Edit Permastructures?
To make changes to permalink formats, first log in with admin account and open your WordPress dashboard. Once in the dashboard, in the menu on the left-hand side, select "Tools" and click on "Permalink Manager".
Then click on the "Permastructures" tab to adjust or simply preview the settings. Initially, it will show the original permalink formats that existed prior to enabling the plugin. You can keep these settings unchanged or customize them for specific content types.
For instance, you can use them to e.g. add custom fields or remove the rewrite base from permalinks.

Available Tags
Inside the settings, you can use either regular words or dynamic tags (e.g. %category%), if you want to add dynamic data like the slug of the linked category to the post's URL.
If you are not sure about which tags can be used, simply click on “Available tags” to check a summarized list of tags for each content type.
How to Preview New Custom Permalink Format?
If you are not certain that your new "permastructures" settings are correct, try opening the sample post and inspecting the URL in the "URI Editor". The default URL, based on your updated permalink format from the "Permastructure" settings, will appear in the "Default custom permalink" row.

The “Default custom permalink” field indicates the default format of the custom permalink based on “Permastructure” settings.
How to Update Existing Custom Permalinks?
By default, the Permastructures only control the custom permalinks for new content items. Therefore, changing them does not automatically update of your existing content URLs. To apply those changes to existing permalinks, the most straightforward method is to use the "Regenerate/reset" tool.
To sum up, whenever the plugin generates & saves custom permalinks, it relies on Permastructures and this happens in three specific situations:
- When a new post, page or term is published
- When URLs of existing items are manually regenerated using the "Regenerate/reset" tool
- When the "auto-update" mode is enabled, and an existing post, page or term is updated or saved
Tips
How to Use Actual Titles Instead of Native Slugs in Custom Permalinks?
The native slugs are generated from the initial title and will not update automatically if the titles are changed later. By default, custom permalinks include the same native slugs as the original permalinks.
The plugin gives you the option to replace slugs with the post title using the %native_title% tag, or to remove the slug altogether.
If you want to use the actual titles for all custom permalinks, a simpler option than using the %native_title% tag is to adjust the global slug settings.
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.
add_filter('permalink_manager_deep_uri_detect', '__return_true');
Once it is done, you should adjust the permastructures settings and use %post_id% tag
How to Conditionally Change Permastructure Formats?
As previously stated, Permastructures are a key component of the plugin, allowing you to specify the way your custom permalinks look like. While you can select a single general permalink format using the plugin's interface, there is a way to dynamically change this format using WordPress hooks.
Overriding the permastructure defined via the plugin interface is possible using the '
permalink_manager_filter_permastructure
' filter. This allows you to dynamically change the permalinks of your posts based on certain conditions.
For example, if you use this filter with the 'has_term()' function to build a code snippet, you can alter the permalinks of a post based on the category it is assigned to:
>/**
* How to programmatically modify post permalink formats (permastructures)
*
* @param string $permastructure The permastructure string used when default custom permalink is generated.
* @param WP_Post|WP_Term $post Post or term object
* @return string The new, filtered permastructure string used when default custom permalink is generated (for new posts or existing ones if "Regenerate/reset" tool is used)
*/
function pm_filter_post_permastructure($permastructure, $post) {
	// Filter only 'Post' permalinks
	if(empty($post->post_type) || $post->post_type !== 'post') {
		return $permastructure;
	}
	// A. Post assigned to either 'Category A' or 'Category B'
	if(has_term(array('Category A', 'Category B'), 'category', $post)) {
		$permastructure = '%category%/%postname%';
	}
	// B. Post assigned to other categories
	else {
		$permastructure = '%year%/%monthnum%/%day%/%postname%';
	}
	return $permastructure;
}
add_filter('permalink_manager_filter_permastructure', 'pm_filter_post_permastructure', 10, 2);
The code above is just a basic example. For further information and examples, please visit a dedicated page.
Frequently Asked Questions
Why Is the Slug Automatically Appended?
By default, Permalink Manager will add slugs to custom permalinks if there is no slug tag (e.g. %postname%) in the Permastructure settings. To turn off this feature, you can disable it in the Permastructure settings by selecting "Do not automatically append the slug" after clicking on the "Show additional settings" button.
How Can I Manually Change Many Separate Permalinks Simultaneously?
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.