Skip to content

Changing /portfolio/ in URLs ​

Projects live at addresses such as /portfolio/frederiks-apartment/, and the list of all projects at /portfolio/. The word portfolio is a setting of the Portfolio Items post type, which the theme registers through Secure Custom Fields. You change it there, with no code. See How portfolio pages work for where these addresses come from.

Changing the URL slug ​

SCF → Post Types → Portfolio Items → Advanced Settings → URLs → URL Slug

▶️ Step 1. ​

In the WordPress admin, go to SCF → Post Types and click Portfolio Items.

Portfolio Items is listed under SCF → Post Types

▶️ Step 2. ​

Scroll to Advanced Settings, open the URLs tab and type the new word into URL Slug, for example projects. Use lowercase letters and dashes only.

URL Slug sits on the URLs tab of Advanced Settings

▶️ Step 3. ​

Click Save Changes at the top right.

Save Changes sits at the top right of the Edit Post Type screen

Settings → Permalinks

WordPress keeps a table of addresses. It learns the new one only when you save the permalinks.

▶️ Step 1. ​

Go to Settings → Permalinks.

Permalinks is an item of the Settings menu

▶️ Step 2. ​

Click Save Changes without changing anything.

Save Changes sits at the bottom of the Permalinks screen

Open a project on the site to check the new address. If a page still shows a 404, see Pages show 404 after a URL change or import.

Old addresses stop working

Every project address changes with the slug. If the site is already public, other sites and search engines still point to /portfolio/. Add a redirect with a redirect plugin before you change it.

The archive and the menu

The archive page moves with the slug. A menu item that you added as a Custom Link to /portfolio/ still points to the old address: edit it under Appearance → Menus, as described in Editing menus.