Adds the ability to configure permalinks for custom post types using rewrite tags like %post_id% and %author%.
Author: | Robert O'Rourke (profile at wordpress.org) |
WordPress version required: | 3.3 |
WordPress version tested: | 6.3 |
Plugin version: | 1.4.4 |
Added to WordPress repository: | 03-09-2012 |
Last updated: | 26-07-2023 |
Rating, %: | 86 |
Rated by: | 15 |
Plugin URI: | https://github.com/interconnectit/wp-permastr... |
Total downloads: | 17 283 |
Active installs: | 700+ |
Click to start download |
In addition to controlling your custom post type permalinks this plugin adds support for using custom taxonomies in your permalink structures as well.
Not only that but you can control the full permalink so the post type slug is not required at the start of the link.
Multiple post types can use the same permalink structure.
Usage
There are 2 ways to use this plugin:
Permalink Settings
The plugin adds fields to the permalinks settings page for any public facing custom post types.
In Code
When registering a post type you can add a value to the rewrite property with the key ‘permastruct’ to define your default permalink structure.
eg:
<?php
register_post_type( 'my_type', array(
...
'rewrite' => array(
'permastruct' => '/%custom_taxonomy_name%/%author%/%postname%/'
),
...
) );
?>
Screenshots
FAQ
ChangeLog