Rewrite default post type

Use the field in the admin Settings > Permalinks page to set your permalink structure to /blog/%year%/%monthnum%/%postname%/.

To prevent custom post types from inheriting the post permalink structure, set with_front to false in your register_post_type arguments for all custom post types.

Version 4.4 also added the register_post_type_args filter to allow modification of post type arguments for types registered by code you don’t have access to change.

Leave a Comment