Skip to content

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

License

Notifications You must be signed in to change notification settings

interconnectit/wp-permastructure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

register_post_type( 'my_type', array(
	...
	'rewrite' => array( 'permastruct' => '/%custom_taxonomy%/%author%/%postname%/' ),
 	...
) );

?>

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages