Skip to content

Instantly share code, notes, and snippets.

@madysondesigns
Created May 17, 2016 12:42
Show Gist options
  • Save madysondesigns/56b60d618c4c1c5a9c0fdffc2e4a31ec to your computer and use it in GitHub Desktop.
Save madysondesigns/56b60d618c4c1c5a9c0fdffc2e4a31ec to your computer and use it in GitHub Desktop.
In functions.php:
function load_podcast_from_slug($slug) {
echo "https://soundcloud.com/graphicdesignerpodcast" . $slug;
}
In single.php inside the loop:
load_podcast_from_slug($post->post_name);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment