This plugin hasn’t been tested with the latest three major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Simple Post Type Permalinks


Edit the permalink structure of custom post type too easy.

Simple Post Type Permalinks is Simple and Smart than Custom Post Type Permalinks.

Available tags are %post_id%, %postname%, %year%, %monthnum%, %day%, %hour%, %minute%, %second%, %author%.

Requires PHP version 5.3 or higher.

This Plugin published on GitHub.

Please Fork and Pull Request!

Setting on Code


register_post_type( 'foo',
        "public" => true,
        'has_archive' => true,
        "rewrite" => [
            "with_front" => true
        "sptp_permalink_structure" => "foo/%post_id%"


  • screenshot-1.png


Manual Installation

  1. Upload the entire /simple-post-type-permalinks directory to the /wp-content/plugins/ directory.
  2. Activate Simple Post Type Permalinks through the ‘Plugins’ menu in WordPress.

Access the permalinks setting by going to Settings -> Permalinks.


Which tag that can be used?

Only %post_id% and %postname%.


18 July 2018
Hi there, actually this was the solution I was looking for, but in my case it’s not working as the assignment in the plugins setting is not saved. Useless for me ๐Ÿ™ Regards Barcelo
26 June 2018
register_post_type() ใ™ใ‚‹ใจใใซใƒ‘ใƒผใƒžใƒชใƒณใ‚ฏๆง‹้€ ใ‚‚ๆŒ‡ๅฎšใงใใพใ™ใ€‚็ฎก็†็”ป้ขใง่จญๅฎšใ™ใ‚‹ใจ็ฎก็†ใŒ็…ฉ้›‘ใซใชใ‚‹ใฎใงใ“ใ‚Œใฏใ™ใ”ใ่‰ฏใ„ใจๆ€ใ„ใพใ™ใ€‚
13 September 2017
Simply garbage. It screwed up all of my navigation links (changed them to frontpage links), and of 4 custom post types it worked for 1. For the other 3 it generated 404 errors. Wasted 20 minutes.
Read all 9 reviews

Contributors and Developers

“Simple Post Type Permalinks” is open source software. The following people have contributed to this plugin.


“Simple Post Type Permalinks” has been translated into 2 locales. Thank you to the translators for their contributions.

Translate “Simple Post Type Permalinks” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Change Log


  • Tested 4.9


  • Change of class structure.
  • Change namespace.
  • Add abstract Module class.
  • Use autoloader.
  • Remove constructor injection and add setter injection for modules.
  • Support %year%, %monthnum%, %day%, %hour%, %minute%, %second%, %author%.


  • fix pagination link.


  • fix textdomain.


  • Test with WooCommerce and WPML.
  • Admin Bug Fix.
  • Support get_post_type_archive.


  • Admin Bug Fix.


  • Coding Standard Fix.


  • Drop PHP 5.2.


  • First release