Skip to content

Instantly share code, notes, and snippets.

@hlashbrooke hlashbrooke/functions.php
Last active Sep 11, 2017

Embed
What would you like to do?
Seriously Simple Podcasting: Modify podcast archive slug
add_filter( 'ssp_archive_slug', 'ssp_modify_podcast_archive_slug' );
function ssp_modify_podcast_archive_slug ( $slug ) {
return 'new-slug';
}
@maenjuel

This comment has been minimized.

Copy link

maenjuel commented Jan 9, 2017

I'm setting up Seriously Simple Podcasting for a WordPress site and would like to completely remove 'podcast' from the podcast slug (i.e. website.com/blog/podcast-title). However the following code returned 'podcast' in the URL:

add_filter( 'ssp_archive_slug', 'ssp_modify_podcast_archive_slug' );
function ssp_modify_podcast_archive_slug ( $slug ) {
  return '';
}

I can change the slug to anything else and that works, but an empty slug seems to be overwritten by 'podcast'. Is there a way to completely remove the "podcast" from the URL? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.