BACK TO DIRECTORY

WP Permastructure

by Robert O'Rourke

4.3
(15 ratings)

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

The extended permalink settings panel

The extended permalink settings panel

Plugin Details

Active Installs
400
Total Downloads
22,656
Version
1.4.4
Requires WP
3.3
Requires PHP
Tested Up To
6.3.10
Added
2012-09-03
Last Updated
2023-07-26 9:18am GMT

Ratings

5
12
4
0
3
1
2
0
1
2