Custom post types – Use post_id in permalink structure when using has_archive => true
To get what you need you have to add a custom rewrite rule and to filter the permalink construction. The following code does both: <?php # -*- coding: utf-8 -*- /** * Plugin Name: Event Permalinks */ // Not a WordPress context? Stop. ! defined( ‘ABSPATH’ ) and exit; // Wait until all needed functions … Read more