I think you may be mixing up a couple of concepts here. Use the new template page you made and name it archive-portfolio.php. This will display all portfolio post types in your new template at yoursite.com/portfolio
and the url for the portfolio items should take care of itself. They will still be at yoursite.com/portfolio/item1
so no need to change the permalinks – or slug. If you want to change the single item display you need to edit single.php
, change the name to single-{post_type}
.php and it will be used automatically
Related Posts:
- How to map permalinks with accented letters to sanitized slugs?
- Remove subfolders from URL
- custom naming of search permalink /search/
- Auto 301 to full post permalink? (using /posts/%post_id%/%postname%)
- Using WP rather than .htaccess to redirect pages/posts
- Image Attachment Url Rewrite
- Rewrite my default post URL
- Why does chrome keep downloading a file instead of running the site?
- Permalinks: Page Not Found
- How to redirect to correct pages after permalink structure change
- Redirect a Blogger Page URL to wordpress
- URL rewriting: removing the site’s basename for a specific category
- How to rewrite a URL to another rewritten URL without changing the address?
- mod-rewrite exception? keep #hash in matching urls?
- Custom permalink structure with %postname% in front of domain name
- Problems with permalinks (.htaccess not working)
- No Ones Been Able to Override my WordPress Rewrite Rule Issue!
- My permalinks for all pages and posts now include old page titles as parents/categories
- Folder Name and Category Name WordPress
- Once redirected by Rewrite rules, how can WordPress know the page?
- How does WordPress handle permalinks?
- Creating custom permalink structure for languages
- How to add a custom URL placeholder to author archives?
- 301 Redirects for Changed Permalink Structure & Category Base
- Passing variables through permalink structure
- permastruct for custom post type not working in one of four cases
- Make post slug have priority over category slug
- Multisite wordpress and subdomain URL collisions
- flexible rewrite ‘ramble’ URLs with WordPress
- htaccess or redirect to cloak portion of a link?
- Using only %postname%
- wordpress permalinks tweeks
- How to Modify Existing Rewrite Rules?
- .htaccess – Redirect duplicated post ended in ‘-number/’ to the same url without the -number/
- After moving from subdirectory to home, home page does not display
- Specific URL Rewriting with parameters in wordpress
- Rewrite Page with a slug before page name
- If the only permalink setting is %postname% what happens in the case of old duplicates?
- Change author slug and functionality
- Changes to .htaccess not updating the file (old rules still take effect)
- Use Regular Expression to get tag from permalink url during wp_rewrite in generate_rewrite_rules
- AWS WordPress Install – pages/posts 404 on restart until updating permalinks
- remove sub-category of Custom Post Type from permalink structure
- Permalinks not working with Vagrant
- Only plain permalinks working
- Add prefix to page URL based on the page template
- How to remove specific category from URL in WordPress
- Need to add trailing slash to all internal links relative and absolute
- Redirect Uploads Folder to Query Vars in WordPress
- Custom permalink leads to index page
- flush_rewrite_rules breaks permalinks
- WordPress 4.4 old permalink redirect
- Permalinks 404 error with HTTPS host
- Mirror content based on URL slug
- How to change hierarchical page permalinks to be flat
- Accessing Subdirectories in WordPress Install
- Empty permalinks settings in .htaccess
- How to use different domains for different blogs hosted in the same host in subdomains with .htaccess
- WordPress 3.1 .htaccess contents keep dissappearing?
- Custom permalinks in WordPress
- What causes /pages/ to appear in URI, and how to remove it?
- How Do I get the author’s page id?
- Getting back a permalink from custom url
- Permalinks on Windows IIS not working and web.config breaks site – does wordpress not support windows server now, if so how?
- Order custom post type posts by custom field with pretty URL
- Show category name in the post URL only for specific categories
- Bulk append URL (add word to slug)
- help to remove last trailing slash using add_rewrite_rule
- change WordPress permalinks and redirect new urls 301
- How are WordPress Page URLs affected by permalink settings?
- Change permalink to attachment
- WordPress Page Not Found if Permalink Settings is Postname
- Conditional Permalink based on category?
- Access posts while mod_rewrite is broken
- WordPress upgrade from 2.7 to 3.3 Permalink problem
- Subdomains pointing to a permalink URL
- Change author permalink using htaccess?
- corrupted URLs – can’t leave starting page
- Make the blog page a child of another page and rewrite the blog url
- Multiple Taxonomy Items for Separate URLs
- MySQL-inserted custom taxonomy term lead to 404, flush rewrites doesn’t help
- How to construct a dynamic rewrite rule for child pages that passes more than one query var
- Website URL Permalinks
- append current user-id to all internal permalinks
- Pagination links for taxonomy archive page 404 error on every page except first
- Change all pages permalinks instead of hierarchical to have id of the page
- How can I get .html URL suffixes in permalinks?
- rewrites and custom links in page need help with add_rewrite_rule
- Category-dependent custom permalink
- Pretty permalinks (again)
- All pages lead to home
- Customized author slugs not working with get_author_posts_url method
- Remove index.php from WP 8.0 install migrated to IIS from Apache (still detecting Apache server)?
- ?posts_type=xxx not rewritten
- How do you put your own rules into .htaccess?
- region selection
- WordPress custom permalinks, pages are now 404
- Include language variable in url
- Use .htaccess to redirect homepage to its permalink
- Standard Htaccess directives disappear by themselves