How can I get it to show the portfolio page and not the archive?
-
As pointed in the comments, just set
has_archive
tofalse
. -
But after that, be sure to flush the rewrite rules – just visit the permalink settings admin page.
Related Posts:
- Taxonomy page returns 404 page not found
- Prepend meta_value to permalink of post
- Removing CPT slug from URL results in 404 error for archive page
- Getting Post ID from slug during init
- Interesting Custom Post Type Slug with Taxonomy and Custom Field
- Rewrite rules for custom post type slug
- How to remove slugs from multiple custom post types
- Change custom post type slug from plugin options
- Rewrite post type slug only for child theme
- Custom rewrite url category
- Index page with the same id as the slug
- How can I make the slug of the taxonomy also the slug of the custom post
- Programmatically rewriting slug through functions.php but returns 404
- Including taxonomy term before post type breaks top level pages
- Custom Post Type Advanced Slug
- Custom Post Types and Removing Slugs – should we do it?
- Custom rewrite rule based on other custom post type title
- Custom Post Type not using correct page template
- Add %post_id% to slug of custom post type and prevent the “unique slug” thing that WP does?
- Two CPT: one is using part of the custom rewrite slug from the other
- Custom Post Type Rewrite Rule
- Custom Post Type with multiple Custom Taxonomies / Hide Taxonomy Slug from URL
- Custom post type Premalinks main page and details page
- Custom slugs with dates & IDs on Custom Post Type
- Add post id to url instead of WordPress default -2 suffix
- Custom Post Type Slug / Page Slug Conflict – Prevent use of reserved slug on page save?
- Custom Post type & Taxonomy URL structure
- Multiple post types – share same ReWrite slug?
- How to pass URL parameters for advanced taxonomy queries with multiple terms for one custom taxonomy
- Combining Multiple Taxonomies in one URL
- Slug for custom post type archive
- Change page /2 to /transcript with a Rewrite
- Permalink rewrite with custom post type and custom taxonomy
- Custom Post Type – Same Post Name, Different Post Type
- How would I leverage custom Taxonomies in this scenario?
- Priority for Categories, Tags, Taxonomies, Posts, Pages and Custom Posts with same url
- Force unique page slugs across all post types
- Get slug to point to different content of the same post
- Is slug “type” reserved and can’t be used in taxonomy rewrite?
- Custom Post Type get_post_type_archive_link( $post_type ) returns false
- Using custom post type parent as slug
- Permalinks when filtering multiple custom post types by single taxonomy
- custom taxonomy archive by year
- How can you handle rewrite rules for custom post types with option to filter on custom taxonomy terms?
- Conditional regex in add_rewrite_rule() for specific query filters & pagination
- Displaying Posts of a Custom Type
- Wrong generated page_name/slug on first publish of custom post type
- Can’t change first part of URL rewrite for custom post type
- CPT Archive with core Category
- Stop / prevent WordPress from updating permalinks of custom post type
- Custom taxonomy in URL showing 404
- Relative URLs for a particular custom post type?
- Custom Taxonomy URL are redirecting to page with the same name
- How can we take into account post types when constructing permalinks?
- Taxonomy custom post type URL
- How to target a specific custom post type post and its all children and grandchildren?
- How can achieve this permalink perfectly? domain.com/%category%/%post-name%
- Custom Permalink to remove category word , keeping posts permalink with date?
- WP Rewrite Rule Issue while using Custom post type & taxonomy
- WordPress uses url different from defined in rewrite arg of custom post type
- Rewrite rule for Custom Post Type Page as a parent
- add_rewrite_rule and passing variables for custom post types
- Custom taxonomy and post type with same slug
- Permalink misbehaving in Custom Post Types
- How to find a specific post_type using its “rewrite slug”?
- Change Slug of a Custom Post Type
- Why WordPress is picking archive.php instead of page.php?
- How to rewrite custom taxonomy term archive to use THE SAME SLUG/front as CPT
- How to create custom search result page with custom URL parameters for custom post type?
- Automatically update slug with latest title within custom post type [duplicate]
- Page inside custom post type (url rewrite?)
- rewriterule not working
- Custom Post Type View Button in Admin Gives 400 Error
- How to controll the Posts post type and general wondering about WP data structure
- Custom Post Type URL Rewrite’s
- restricting custom rewrite to just one custom post type
- How do I set a post slug automatically based on taxonomy?
- Rewrite URL for CPT to domain/post-name/post-id
- How to apply multiple rewrite_rule to a single custom post type url?
- Custom permalink structure for custom post types including multiple taxonomy
- How can I assign multiple parents to CPT?
- CPTs relationship
- Permalinks: custom post type -> custom taxonomy -> custom sub taxonomy -> post
- Rewrite url for custom post type with specific url
- Customise Permalink Structure For Custom Post Types
- How to make “single post” permalink maintain it’s sub-page structure
- Custom post type post_type_link gives “page not found” on any other custom post type
- Problem to get the link of the default ‘post’ post type like the orther custom types
- I have a custom taxonomy assigned to two post types. How do I create URLs for different term archives for each post type?
- Can I override the permalink/slug on creation
- Rewrite Endpoint Url without ? before endpoint
- How Can a CPT in WordPress have a page 2 without an error?
- Get the custom post type slug but remove the rewrite prefix?
- Rewriting archive page slug to be different than custom post type slug
- Remove sequential number from permalinks
- custom post type archive slug vs. custom page template
- Parent cpt/child custom post type URL permalink relationship
- How to make nested custom post type slugs work
- Is it possible to use a post name in a custom post slug?
- Taxonomy Archive URL + Template