Slug-Free Permalinks

Slug-Free Permalinks

By Kodo
Details
View on WordPress

Slug-Free Permalinks lets you switch selected post types and taxonomies to simple ID based permalink formats.

You can choose between:

  • /post/123/
  • /post-123/

The plugin only affects the post types and taxonomies you enable in the settings screen.

Features:

  • Select individual public post types
  • Select individual public taxonomies
  • Choose slash or hyphen based ID permalink format
  • Optionally redirect legacy slug URLs to the current ID based permalink when WordPress can resolve the request
  • Preserve prefixed permalink bases such as /en/ when another plugin adds them
  • Flush rewrite rules automatically when settings change

This plugin is focused on permalink structure only. It does not add content features or front-end UI.

Development repository: https://github.com/1008k/slug-free-permalinks

The dist/ directory is treated as local build output and is not tracked in Git. Build the distributable plugin locally before running Plugin Check, creating release ZIPs, or deploying.

Known limitations:

  • If a post type slug and taxonomy slug are identical, their ID based rewrite patterns can conflict.

Details

Plugin code:
slug-free-permalinks
Plugin version:
1.4.5
Author:
Outdated:
No
WP version:
5.8 or higher
PHP version:
7.4 or higher
Test up to WP version:
6.9.4
Total installations:
0
Last updated:
2026-03-29
Rating:
Times rated:
0
custom-post-types
permalinks
slugs
taxonomy
urls