Improve Custom Post Permalink Structure
you can use and manage your permalink for custom post type. Custom Post Type Permalinks add_action(‘init’, ‘my_rewrite’); function my_rewrite() { global $wp_rewrite; $wp_rewrite->add_permastruct(‘typename’, ‘typename/%year%/%postname%/’, true, 1); add_rewrite_rule(‘typename/([0-9]{4})/(.+)/?$’, ‘index.php?typename=$matches[2]’, ‘top’); $wp_rewrite->flush_rules(); // !!! }