2

The way I see it, you could do: // Via the init hook, do all these: register_post_type( 'library-books', [ 'public' => true, 'label' => 'Library Books', 'rewrite' => [ 'with_front' => false, 'slug' => 'library/books' ], 'has_archive' => 'library/books', // other args here ] ); register_post_type( '...


Only top voted, non community-wiki answers of a minimum length are eligible