Multiple Slugs for single Custom Post Type

admin

Administrator
Staff member
I'm trying to get a single custom post type to have multiple archive slugs.

Current rewrite:

Code:
'rewrite' => array('slug' => 'blog/authors', 'with_front' => false ),

I'm looking to have multiple listings under the same CPT. I'm looking for this sort of functionality:

Code:
'rewrite' => array('slug' => array('blog/authors', 'our-people'), 'with_front' => false ),

Is this possible? I am currently assuming I'm going to have to write some custom rewrite rules although I was hoping for a clean solution.

From my searching I found these links but none are helpful for my situation:

<a href="https://premium.wpmudev.org/forums/topic/custom-post-type-with-multiple-slugs" rel="nofollow noreferrer">https://premium.wpmudev.org/forums/topic/custom-post-type-with-multiple-slugs</a>
Not helpful

<a href="https://wordpress.org/support/topic/multiple-rewrite-slugs-for-one-post-type" rel="nofollow noreferrer">https://wordpress.org/support/topic/multiple-rewrite-slugs-for-one-post-type</a>
No fix

<a href="https://stackoverflow.com/questions/30533210/wordpress-multiple-slugs-for-a-custom-post-type">Wordpress multiple slugs for a Custom Post Type</a>
Language specific.

Thanks