Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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%.
- Host: GitHub
- URL: https://github.com/interconnectit/wp-permastructure
- Owner: interconnectit
- License: other
- Created: 2012-08-01T20:23:15.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2024-02-08T13:21:29.000Z (10 months ago)
- Last Synced: 2024-05-01T09:43:22.012Z (7 months ago)
- Language: PHP
- Size: 82 KB
- Stars: 52
- Watchers: 11
- Forks: 16
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: license.txt
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.