Resolve a custom post type name vs. page permalink conflict (same slug)

The easiest would be to just disable the archive page for this CPT:

register_post_type( 'visningshus',
    array(
        [...]
        'has_archive' => false,
        [...]
    )
);

Don’t forget to refresh you permalinks afterwards at “Settings > Permalinks”

Leave a Comment