1. Home
  2. Docs
  3. Basics
  4. How to regenerate the custom permalinks?

How to regenerate the custom permalinks?

Every time a new post, page, product, category or custom taxonomy term is published, Permalink Manager would use the default custom permalink that would follow your current permastructure settings defined in “Tools -> Permalink Manager -> Permastructures” admin page.

Still, you can edit/overwrite manually each custom permalink using URI editor. It is also possible to auto-update the permalink after the post or term is saved by enabling “Auto-update the URI” mode in Permalink Manager settings. You can find more detailed instruction on this here.

After you change your permastructure settings, the new rules will not affect the old custom permalinks assigned to posts and terms that have already been saved before. In such a situation you will need to regenerate the custom URIs to apply the new settings to them. If ‘Auto-create “Extra Redirects” for old permalinks‘ option is enabled in Permalink Manager options, the plugin will automatically create the redirects for old versions of custom permalinks.

How to reset/regenerate the post type permalinks?

Please go to “Tools -> Permalink Manager -> Tools” and select section titled “Regenerate/reset“.

Therefore, please set in the form:

  • Mode” to: “Regenerate custom permalinks
  • Select content type” to: “Post types
  • Select post types” to specific post types eg. “Products“.

After “Regenerate” button is clicked, a list of updated/changed custom URIs will be displayed below.

How to reset/regenerate the terms permalinks?

Similar to the previous case, please select:

  • Mode” to: “Custom URIs
  • Select content type” to: “Taxonomies
  • Select taxonomies” to specific taxonomies, eg. “Product tags” or “Product categories

How to reset/regenerate the native slugs?

Permalink Manager allows also to regenerate/recreate the native slugs from the post or term titles. To do so, please go to “Regenerate/reset” section of Permalink Manager and select:

  • Mode” to: “Regenerate native slugs
  • Select content type” to: “Taxonomies“ (if you want to regenerate the term slugs) or “Post types” (if you want to regenerate the post slugs)
  • Select taxonomies/Select post type” to specific taxonomies or post types, eg. “Product tags”, “Product categories“, “Posts“, “Pages
Because the native slugs are overwritten directly in the database, a MySQL backup of wp_posts and wp_terms table is highly recommended before using “Native slugs” mode.

Was this article helpful to you? Yes No