Changing URLs

Support Area Forums Kerygma Changing URLs

Viewing 2 posts - 1 through 2 (of 2 total)
URL to the page in question: http://www.salenaknight.com
  • Author
    Posts
  • #25710
    Salena Knight
    Participant

    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

    #25711
    Bill Robbins
    Moderator

    Salena,

    You can change the base slug for podcasts if you’d like to. Here’s what to do:

    1. First install and activate a plugin called WP Editor. It replaces WordPress’ built in editor with one that can edit the necessary files.
    2. Go to the Appearance section in your WordPress dashboard and choose Theme Edit.
    3. 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.
    4. 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).

    5. 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.
    6. Save your changes.
    7. 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

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Changing URLs’ is closed to new replies.