I'm registering my CPT like so:
$args = array(
'labels' => $labels,
'public' => true,
'hierarchical' => false,
'rewrite' => array(
'with_front' => false,
'slug' => 'news/events'
),
'supports' => array( 'title', 'editor', 'thumbnail' )
);
register_post_type('events',$args);
Now that will generate post permalinks like so: /news/events/{post_name}/
but I want the following permalink structure: /news/events/{post_id}/{post_name}/
.
How do I do this?