Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/interconnectit/wp-permastructure

Adds the ability to configure permalinks for custom post types using rewrite tags like %post_id% and %author%.
https://github.com/interconnectit/wp-permastructure

Last synced: 10 days ago
JSON representation

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

Awesome Lists containing this project

README

        

Custom Post Type Permalinks
===========================

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

## Usage:

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
array( 'permastruct' => '/%custom_taxonomy%/%author%/%postname%/' ),
...
) );

?>
```

Alternatively you can set the permalink structure from the permalinks settings
page in admin.