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
- Create a custom php page and load it at a specific slug
- URL rewrite add author as base
- Remove CPT name from permalink but add %category% instead
- Permalinks /country/city/cpt/postname/
- Custom Permalink to remove category word , keeping posts permalink with date?
- Rewrite Rule for showing Parent/Child Relationship between Two Hierarchical Custom Post Types
- 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
- Need help with permalink rewrites for Custom Post Types with hierarchical relationships
- Custom Post Type Permalink empty
- Custom Permalinks with CPT and Hierarchical Taxonomies
- Change custom post type permalink to show name of post from another custom post type?
- Custom Post Type Permalink
- Redirect custom post type category to other custom post type category
- Permalinks for custom post type
- How to have this permalink structure: post_type/postname/custom_inner_page
- Additional section in custom post type permalink
- How to include term custom meta into the custom taxonomy term permalink structure
- Blog posts for custom post type only
- Path to custom post type
- Custom Permalink Structure for Custom Post Type, Custom Taxonomy, Under a page
- Custom taxonomy returns 404
- Parent Page and Breadcrumb URL’s for Custom Post Types Not Working
- Permalinks: custom post type -> custom taxonomy -> post
- Custom post type archive pagination 404
- CPT’s with landing page instead of archive – Url Rewrite?
- How to change permalink to include custom post type
- Removing Custom Permalink Structure for Custom Post Type
- Custom post type, permalinks, taxonomies and blog posts
- Custom post type permalink tag 404
- Custom post type permalink returns 404
- Use the same date-based permalink structure for all post types
- Permalink structure with custom taxonomies and custom post type like /parent-tax/child-tax/custom-post-type-name (with no base name)
- permalink /category/post-name with custom post type and taxonomy
- “Post name” permalink returns home page for custom posts
- Custom post type and taxonomy permalinks
- Hierarchical permalinks for custom post type and taxonomy
- How to organize hierarchical structure in custom post type with taxonomy (like with categories)
- Make custom post types and pages place nice, re: rewrite
- Custom Post Fields at the beginning of a Custom Permalink
- Can slugs from posts and custom post types conflict?
- Flush Rewrite Rules when new site is created on network
- Pretty URLs and custom post types
- Form action doesn’t work if slug isn’t same as custom post title
- How to make permalink structure %category%/%postname%/ work for custom post type?
- set permalink for CPT
- Ignoring slug capitalization on rewrite rule for custom post type archive page
- Lost of query parameter when using permalink
- Custom permalinks rules don’t match and lost of query var in the process
- Custom Post Type – Duplicate Page Slugs
- Rewrite rule for Custom post type Monthly and Yearly archive
- Some posts from custom post type to subdomains
- Different results between permalink and query var search
- menu link to custom post_type?
- Custom permalink with child taxonomy terms
- Custom post type Permalinks with hierarchical Taxonomies
- 404 in custom post type feed with mistake permalink
- Add a permalink variable onto custom post type URL after post name slug
- Remove permalink for custom post type
- Permalink misbehaving in Custom Post Types
- Check post on publish for blank title
- How to solve this custom post type goes to 404 page?
- Best way to specify “article type” in URL
- Template files for Custom Post Type and Taxonomy
- How to Create Template File for Parent Page of Custom Post Type
- How do you create %post_type%/%postname%/ permalink structure?
- Problems with 404, .htaccess, permalinks and WordPress custom posts locally on Snow Leopard
- How to query 2 custom post types that need to share a slug?
- Custom URL redirect in WP
- I’m having trouble getting the permalink sample on my custom post type edit page to work
- How to change path for default WordPress blog posts?
- How to hyperlink content from archive page with custom post-type
- Can’t use pagination with custom taxonomy
- retrieve permalinks of posts inside custom post type by using post ID
- Custom Permalinks with meta value not working. Why?
- Custom post type as child of page
- Remove custom permalink structure from custom post type without modifying register_post_type() directly
- Redirect to archive is single post has a certain term assigned to it?
- How to have permalink like domain.com/term/postname?
- Can variables be used to rewrite a Custom Post Type permalink? [duplicate]
- make permalink go to a custom single.php file
- Redirect to first child on Custom Post Type (without template)
- Custom post type permalink sends to 404.php
- Post will not load via ajax
- Template for custom post type when taxonomy is in the URL
- One Custom post type 404’s others don’t
- Custom Post Type posts, conflict with posts after add_rewrite_rule to top
- How to change base in tag URL for custom post type, to not use “Custom Structure” set in Permalinks setting?
- Combine multiple CPT names to create valid permalinks
- Permalink problems with custom post type and custom taxonomy
- How to implement a different permalink structure for custom post type?
- How to add a sub directory to WordPress single posts without affecting other post types?
- Set parent for custom post type archive rewrite url
- How to rewrite the beginning and end of the permalink structure in a custom post type?