WP Permastructure Icon

WP Permastructure

By Robert O'Rourke

Active Installs

400+

Last Updated

July 26, 2023

First Released

September 3, 2012

Download History (Last one month)


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

?>
  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

None so far.

Changelog

  • 1.4.3: Remove create_function calls
  • 1.4: Handles sample filters without the need for the get post call
  • 1.3: Added permalink sanitisation function, current one incorrectly truncated placeholders
  • 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
<br />
<b>Warning</b>:  Undefined array key /home/ylinkin/truewp.net/wp-content/plugins/truewp-plugin-info/truewp-plugin-info.php on line 756
" width="120" height="120">

Available Versions

Version Download Type
1.4.4 Download Stable
1.4.3 Download Stable
1.4.2 Download Stable
1.3 Download Stable
1.2 Download Stable
1.1 Download Stable
1.0 Download Stable
Development Download Trunk

Plugin Info

  • Version: 1.4.4
  • Last Updated: July 26, 2023
  • Active Installs: 400+
  • WordPress Version: 3.3 or higher
  • Tested up to: 6.3.8
  • PHP Version: or higher
  • Tags:    
    custom-post-types custom-taxonomies permalinks rewrite-rules urls

Ratings


4.3 out of 5 stars. (15 reviews)

See all reviews
Scroll to Top