changing staff url
URL to the page in question:
http://http://
-
Hi,
I am using the staff page in this theme as an about page both for a founder and the organization. Can I change the url to NOT include “staff” in http://sitename.com/staff/foundersname/ and just be http://sitename.com/foundersname/ ?
Thanks!
Hi Alison,
Good question. It’s not particularly easy to remove the “slug” from “custom post types” in WordPress, but I believe it can be done. You’ll need to make some edits to the theme. Here’s what to do:
- Go to the Appearance section in your WordPress dashboard and choose Edit.
- From the list of files on your right, choose functions.php
- Scroll down to the bottom and add this:
(Be sure to copy that code directly from the support site and not the notification email.)
- Save your changes.
- Go to settings in your WordPress dashboard and click on Permalinks. Choose the post name option and save your changes. Even if post name was already selected, save your settings to clear out the permalink cache since the structure is changing.
See if that works for you. It’s not something I’ve experimented with very much, but hopefully it’ll do the trick.
Take care,
Bill
Anytime. Take care Alison 🙂
- The topic ‘changing staff url’ is closed to new replies.