To Fix it, simply set with_front to false where the custom post types are registered:
'rewrite' => array('slug' => 'portfolio', 'with_front' => false),
With this Custom post type will not get 404 error
To Fix it, simply set with_front to false where the custom post types are registered:
'rewrite' => array('slug' => 'portfolio', 'with_front' => false),
With this Custom post type will not get 404 error