Custom Post Type with modified permalink structure results in 404
In your register_post_type, you set ‘with_front’=> false, Later you declare the following function without arguments: add_permastruct( ‘review’, ‘reviews/%year%/%review%’); add_permastruct has an argument of with_front and the default value is true, which conflicts with your earlier declaration.