My First Car, Honda City 2009
 

Embed Talkr Podcast Audio Links into WordPress

Filed in: WordPress — July 18th, 2005

advertisement

Have you tried the Talkr, the free podcast for your blog? I hope you did, it is interesting and very easy to use. However, the Talkr does not has audio links embed intruction for WordPress users.

No worry, I show you(Surfnux) how to embed Talkr audio links into your WordPress template.

I assume you already registered Talkr free membership, submited your blog RSS feed and got the audio link code like following:

HTML:
  1. <img style="border:none;" src='http://www.talkr.com/images/speaker_20.gif' alt='Listen to this article' border='0' />
  2. <a href='http://www.talkr.com/app/fetch.app?feed_id=1234&perma_link=[template variable for permalink]'>
  3.     Listen to this article
  4. </a>

Take note on the "[template variable for permalink]", we will change it later.

Now we need to edit your WordPress template to include the audio link code.

Reminder: Backup your template files before edit.
  1. Open "index.php" for edit.
  2. Look for "the_content" line like following:
    PHP:
    1. <?php the_content('Read the rest of this entry &raquo;'); ?>

  3. Add the following code under the line:
    HTML:
    1. <img style="border:none;" src='http://www.talkr.com/images/speaker_20.gif' alt='Listen to this article' border='0' />
    2. <a href='http://www.talkr.com/app/fetch.app?feed_id=1234&perma_link=<?php the_permalink(); ?>'>
    3.     Listen to this article
    4. </a>

    Note: I changed "[template variable for permalink]" to "<?php the_permalink(); ?>".
  4. You should get something like this after editing:
    HTML:
    1. <?php the_content('Read the rest of this entry &raquo;'); ?>
    2. <img style="border:none;" src='http://www.talkr.com/images/speaker_20.gif' alt='Listen to this article' border='0' />
    3. <a href='http://www.talkr.com/app/fetch.app?feed_id=1234&perma_link=<?php the_permalink(); ?>'>
    4.     Listen to this article
    5. </a>

  5. Save the "index.php" file and upload back to your WordPress template directory.
  6. You may also want to edit the same to "single.php", "search.php", and "archive.php".
  7. After you have done, the Talkr audio link should appear at end of each entry.

Thought:
It is not as hard as you thought to embed the podcast audio link into WordPress template. :) The "the_permalink();" is a WordPress tag to disply entry's permalink.

By the way, if you are looking for a Podcast receiver, get iPodder(free, as usual).

Bookmark and Share

Read also:

What do you think? 3 Responses to “Embed Talkr Podcast Audio Links into WordPress”

Comments Feed | TrackBack URL
  1. #1
    surfnux Says:

    Wah, you did it man. Thank you for the guides. I am testing it out now.

  2. #2
    aaron Says:

    i used talkr with movable type for about a month and it worked great. i switched to wordpress and it’s not converting my posts to audio for some reason. it’s says it can’t find the entry. i compared you code ot mine and they are identical. maybe it’s an rss problem? what do you think?

  3. #3
    The Hoosbies » talkr up and running Says:

    [...] If you use WordPress to power your blog, and want to know how to integrate talkr with it, as I did, check out these instructions that I used. It is a pretty painless process if you have a very basic understanding of HTML and PHP. [...]

Comments are closed. Submit your comment here