How to remove /portfolio slug?

Portfolio post type adds URL prefix for all portfolio items (mysite.com/portfolio/your-item-name) and this can be removed in Theme Options:

Before:

After:

 
To remove portfolio items post type prefix follow these steps:

  1. Theme Options > Portfolio Settings > Portfolio Page
  2. On URL Rewrite Options section disable Portfolio items URL prefix
  3. Click Save All Changes

Flushing rewrite rules is not required for this action, however permalinks structure should be set to Post name option. Otherwise they will show 404 page error!

Was this article helpful?