Changing URLs
URL to the page in question:
http://www.salenaknight.com
-
Hi,
I am trying to modify my URLs for my podcasts.
In the backend of the site, i can modify the name of the file, but not the directory.
/podcasts/dannorris
i can edit the shortlink but I can not edit pocasts
my goal is to change /podcasts/dannorris to
/1/dannorris
but keep them in the podcast section
thanks
Salena,
You can change the base slug for podcasts if you’d like to. Here’s what to do:
- First install and activate a plugin called WP Editor. It replaces WordPress’ built in editor with one that can edit the necessary files.
- Go to the Appearance section in your WordPress dashboard and choose Theme Edit.
- From the list of files on your right, click on the includes folder and then the post-types folder. Then click on the podcast.php file.
- Scroll down to line 42 and add another line below it like this:
'rewrite' => array( 'slug' => 'podcast' ),
(Please copy the code directly from the support site and not the notification email).
- Change podcast in the snippet above to the slug you’d like to have for your podcast. It can’t be empty and needs to be all lowercase letters and dashes for best results.
- Save your changes.
- Lastly go to Settings > Permalinks in your dashboard and save your permalinks again to clear out the permalink cache or you’ll get 404 errors.
Take care,
Bill
- The topic ‘Changing URLs’ is closed to new replies.