Exclusion settings

Permalink Manager generates and saves custom permalinks for all public content types and taxonomies. If you would rather not use custom permalinks for them, you have the option to exclude certain content types or individual posts/terms by their IDs in the plugin settings.

These modification options let you create customized permalink formats for content types that need complex URL structures. For instance, you may apply these formats just to WooCommerce permalinks (products, product categories, and tags) while preserving all other WordPress URLs.

In order to use this feature, go to the plugin's settings and choose the "Exclusion settings" section, where you will find the various configuration options outlined below.

Exclude content types

To choose which custom post types and taxonomies should be ignored by the plugin, go to "Tools -> Permalink Manager" and click on the "Settings" tab. In the "Exclusion settings" section, you will find the "Exclude content types" field. Select all the content types whose permalinks you do not want to be changed by Permalink Manager.

"Exclude content types" checkboxes

"Exclude content types" strict mode

Since the 2.2.20 version, Permalink Manager ignores custom post types and taxonomies that have both the "query var" and "rewrite" properties set to false. This modification was done primarily to prevent the plugin from saving custom permalinks for content items that are not supposed to have their own public URLs.

If you need to employ them for whatever reason, please make sure that the ""Exclude content types" strict mode" option is turned off in the options. As a result, the content types that are excluded by default will appear in the "Exclusion settings -> Exclude content types" field.

Exclude content types (strict mode)

Keep in mind that if you opt to exclude a specific type of content, the plugin will stop generating custom permalinks for new items of that type. However, the existing custom permalinks will stay in the database and they will not be deleted automatically. This is to guarantee that no data is lost without your consent when debugging the permalink system.

If you want to reduce the size of the custom permalinks array and remove the excluded items from the database, go to "Tools -> Permalink Duplicates" and click "Fix custom permalinks & redirects" button. As a result, the excluded post and term items will no longer be included in the custom permalinks array.

Fix custom permalinks

Exclude posts/pages/terms by ID

For situations when third-party plugins cause incompatibility issues you can configure Permalink Manager to ignore particular posts or terms. Specifically, you may prevent Permalink Manager from rewriting URLs for certain posts, pages, custom post types, categories, post tags, and custom taxonomies by using their numeric IDs.

Depending on the content item you want to exclude, you may do so using one of two fields:

  • The first, "Exclude posts/pages by ID" is for defining IDs for posts, pages, and custom post types.
  • The second option, "Exclude terms by ID" is intended exclusively for categories, post tags, and custom taxonomies.
It should be noted that these fields can only accept numeric IDs. You may provide a single ID, such as "4, 8, 15, 16" a range of IDs, such as "23-42" or a combination of both, such as "4, 8, 15-23".

Exclude posts/pages/terms by ID

Exclude drafts & pending posts

WordPress creates slugs, also known as permalinks or URL slugs, depending on the titles of posts or pages. However, WordPress does not automatically create the slug for draft posts, and there are solid reasons for this. When a post is in draft mode, it is still being edited and may be subject to changes such as title changes or category reassignment. These modifications may have an influence on the final format of the permalink.

To prevent mismatch between the URL and the actual content of the post, WordPress generates the slug only when the article is ready to be published. This guarantees that the right permalink is created at the time of publishing, reflecting the finished version of the post.

Permalink Manager, like the built-in permalink system, generates the custom permalink only when the post is published. You may, however, opt to enable custom permalink editing even for draft or pending posts through using the "Exclude drafts & pending posts" dropdown field:

Exclude drafts & pending posts

Go up