humanmade/wp-permastructure

Name: wp-permastructure

Owner: Human Made

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

Forked from: interconnectit/wp-permastructure

Created: 2016-08-26 12:11:01.0

Updated: 2018-04-02 21:00:22.0

Pushed: 2017-05-26 08:10:22.0

Homepage: null

Size: 97

Language: PHP

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

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:

p

ster_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.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.