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 P
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
Example:
register_post_type( 'foo', array( "public" => true, 'has_archive' => true, "rewrite" => [ "with_front" => true ], "sptp_permalink_structure" => "foo/%post_id%" ) );
A closer look.
Manual Installation
- 01Upload the entire /simple-post-type-permalinks directory to the /wp-content/plugins/ directory.
- 02Activate Simple Post Type Permalinks through the ‘Plugins’ menu in WordPress.
Access the permalinks setting by going to Settings -> Permalinks .
Frequently asked questions.
Which tag that can be used?
Only %post_id% and %postname% .