Home Forums Theme support how to change posttype or permalink URL Reply To: how to change posttype or permalink URL

sorry for the many replies. The edit function disappears after some time…

Here’s the solution:

// Change ‘wcs3_class’ slug to ‘Dansstijlen’
register_post_type(
‘wcs3_class’,
array(
‘labels’ => array(
‘name’ => __(‘Dansstijlen’),
‘singular_name’ => __(‘Dansstijl’)
),
‘public’ => true,
‘has_archive’ => true,
‘rewrite’ => array(
‘slug’ => ‘dansstijl’
)
)
);

// Change ‘wcs3_instructor’ slug to ‘instructeur’
register_post_type(
‘wcs3_instructor’,
array(
‘labels’ => array(
‘name’ => __(‘Instructeurs’),
‘singular_name’ => __(‘Instructeur’)
),
‘public’ => true,
‘has_archive’ => true,
‘rewrite’ => array(
‘slug’ => ‘instructeur’
)
)
);