So for example, I have multiple custom post types movies, games, and music, I'd like to add a custom parent slug, so the output would be like this; or the custom post type slug should be the prefix slug of it,
- sampledomain.com/movies/the-avengers // (single-movies.php)
- sampledomain.com/games/uncharted-4 // (single-games.php)
- sampledomain.com/music/party-in-the-usa // (single-music.php)
and lastly the default post url/permalink would be
- sampledomain.com/articles/sample-article-post // (single-post.php)
Is there a plugin that can help us do this? or better yet a code or sample / documentation that I can read about to make this feature happen?
with_front
inrewrite
tofalse
when registering the post type: developer.wordpress.org/reference/functions/register_post_type/…