Custom post type, permalinks, taxonomies and blog posts

I would do as @cfx suggested: register_taxonomy( // Call before register_post_type() to give rewrite rule priority. ‘bike_category’, // Should be singular, not bikes_category ‘bike’, array( ‘rewrite’ => array( ‘with_front’ => false, // This will strip the “blog” prefix ‘slug’ => ‘bikes’, ), // Other args ) ); register_post_type( ‘bike’, // Post type should be singular … Read more

Post with Custom Permalinks

You could use the Rewrite API. Since you have a fixed set of posts you could do the following: add_action( ‘init’, ‘rewrite_old_slugs’ ); function rewrite_old_slugs(){ $post_slugs = array( ‘post-1’ => 1, ‘post-2’ => 2 ); foreach( $post_slugs as $slug => $new_id ) add_rewrite_rule( $slug . ‘?$’, ‘index.php?p=’ . $new_id, ‘top’ ); } I’ve created a … Read more