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”
Related Posts:
- WordPress Custom Post Type is Matching on Partial Slug
- Different permalink for CPT and regular Posts/Pages but why?
- Child post with numeric only slug keeps redirecting to parent
- Changed permalink structure of CPT – should I redirect?
- Pretty Permalinks with CTP and Taxonomies / Hierarchical
- Redirect permalinks after creating custom post types
- Permalinks: custom post type -> custom taxonomy -> post
- Mixing custom post type and taxonomy rewrite structures?
- Adding categories to custom post type in permalink
- Shouldn’t this be easy?! Custom post type/custom taxonomy permalink
- Nested custom post types with permalinks
- How do I append multiple taxonomies to the URL?
- Custom rewrite rules for archive page and single post
- WordPress Rewrite Rules for Custom Post Type and Taxonomy
- Custom post type 404s with rewriting even after resetting permalinks
- Rewrite rule for Custom post type Monthly and Yearly archive
- Numeric slug on child post
- Having a custom post slug that clashes with an existing directory
- Help with a TV series Rewrite structure
- Slug for custom post type archive
- post_type_link filter causes 404 on the CPT page it’s used on
- Pretty paged permalinks in custom post type loop
- Permalinks for CPT breaks permalinks to pages
- Remove Slug from Custom Post Type results in 404
- single-type.php not working, delivering 404
- How does one flush rules on theme activation or deactivation only?
- Page to display an archive of taxonomies
- How to create a permalink for custom taxonomies and custom post types like base-name/parent-tax/child-tax/custom-post-type-name
- How to show custom taxonomy in the permalink?
- Date-based permalinks for Custom Post Type, and custom taxonomy permalinks
- WordPress rewrite my URL when i use pagination
- Permalinks for custom post-types within custom taxonomies not found
- After updating a page, all pages on the site used the index.php template
- How to set up htaccess to redirect a particular post type or subdirectory to HTTPS?
- Parent & Child Taxonomy slugs in custom post permalink
- Custom Post Types and independent Categories – complex Taxonomy
- Easy way to change custom post type name for permalinks?
- Use menus with anchors
- Permalink structure by Post Meta value
- custom post type parsed as attachment
- 404 Issue w/ Custom Post Type – using Meta for Permalink rewrite
- WordPress Custom Post Type Permalinks dynamic term slugs
- How to add rewrite rule to custom post type with parent in url with cpt ui?
- Create a custom php page and load it at a specific slug
- Permalinks /country/city/cpt/postname/
- Seamless permalinks between Custom Taxonomy and Custom Posts
- Custom post type and custom taxonomy with the same slug using the file page taxonomy only as directory
- Permalinks for custom post type
- Path to custom post type
- How to change permalink to include custom post type
- Make custom post types and pages place nice, re: rewrite
- set permalink for CPT
- One Custom post type 404’s others don’t
- Permalink problems with custom post type and custom taxonomy
- Route subpage to Custom Post Type
- Custom Post Type “MUST NOT” be able to search via URL
- Custom Post Type Advanced Slug
- Ideas on how to organize a project [closed]
- Under What Conditions Can I name my CPT the same as my CPT Page?
- Custom post type category permalinks and archive pages
- One Custom Post Type two different Templates
- Adding /blog in front of single posts (only)
- How to remove /blog/ prefix for custom post types in permalinks?
- On saving Post My permalink is updated and category is removed automatically which cause the 404
- Searching in multiple category + URL hierarchy in real estate WordPress site
- Custom post ID & display information related to this ID
- Edit the default ‘post’ custom post type arguments
- add all blog posts to folder
- Category permalinks don’t work even after flushing
- Changing permalink of default Post with custom post
- Post Click Redirect to Custom URL instead of Single Post Page
- Custom Taxonomy Archive generates 404
- Enabling hierarchical in a Custom Post Type gives error 404
- Standard Page Child of CPT Not Found (404)
- How to create a permalink structure with custom taxonomies and custom post types
- Permalinks change when edit published post on custom post type
- Redirect users in first login to a dynamic link
- Custom permalink rewrite rules – how do I fix this?
- Template hierarchy changes when custom post-type permalink leverages custom taxonomy
- How to retrieve custom post type permalink in another cpt?
- Associate custom CPT with another CPT’s taxonomy and rewrite permalinks
- Post Custom & Taxonomy 404 error
- Same permalink structure for all post types?
- the_permalink() leads back to homepage
- Custom post type with parent page? Possible?
- Hierarchical taxonomy in permalink structure
- Redirect preview single post link to a page
- Can’t make permalink of CPT work
- Issue with permalinks for custom post type
- Cross post type parent page added parent page to permalink but give 404
- Category / Custom Post Type permalink issue
- Adding rewrite rules to Custom Post-type mixed with Taxonomy
- “regular” pages not found after changing permalink
- Custom Post Type and Taxonomy pagination permalink
- permalink structure for single-{post-type}.php in wordpress
- Linking from a list of custom post type items to a single – get_post_permalink not working correctly
- Custom post type permalink structure
- How do I use CPT and permalinks with a mobile theme?
- Add /blog to the “post” post type url
- Can I have a specific template for products even if they are standard posts and not CPT?