Search Over 18,000 FREE Plugins from the Official WordPress Plugin Directory Repository

WP Permastructure

Adds the ability to configure permalinks for custom post types using rewrite tags like %post_id% and %author%.

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%/'
    ),
    ...
) );

?>
Author Robert O'Rourke
Profile
Contributors interconnectit, sanchothefat
Tags custom post types, custom taxonomies, links, permalinks, rewrite rules, urls
  1. wp-permastructure screenshot 1

    The extended permalink settings panel

  1. You can install the plugin using the auto-install tool from the WordPress back-end.
  2. To manually install, upload the folder /wp-permastructure/ to /wp-content/plugins/ directory.
  3. Activate the plugin through the 'Plugins' menu in WordPress
  4. You should now see input boxes for any custom post types you have on the permalink settings page
  • 1.2: Fixed attachment URL rewrites, fixed edge case where permastruct is %postname% only
  • 1.1: Fixed problem with WP walk_dirs and using %category% in permalink - overly greedy match
  • 1.0: Initial import

None so far.

Share  
Download
Version 1.2

Requires WordPress version: 3.3 or higher

Compatible up to: 3.4.2

Last Updated 19 Oct 2012

Date Added: 03 Sep 2012

Plugin Homepage

Evaluation
star1
star2
star3
star4
star5

5 stars
4 ratings
701 downloads

Compatibility

Not Enough Data

Reports:
Works: 3
Broken: 0