Hope it doesn't seem to shallow of a question, but I've searched the web as much as I've could and have not found anything similar yet.
:: Creating a regular post; How can I place a .mp3 link in a "custom-field", have that "custom-field" wrap the .mp3 in
<a href=ex.mp3">Example</a> and place it as a
<?php .. ?> in the single.php file.
It shouldn't be that difficult, at least from my perspective. Any help/tutorials will definitely be resourceful right now.
Appreciate the reply @johnsardine . I pretty much went with the basics of WP's Codex on Custom Fields. This is what I ultimately came up with (Note: this is going in The Loop via single.php - as I only want this on posts)
<a class="htrack" tabindex="1" type="audio/mpeg" title="<?php the_title(); ?>" href="<?php $key="mp3link"; echo get_post_meta($post->ID, $key, true); ?>" rel="nofollow"><?php the_title(); ?></a>
mp3link is used for the "Custom Field" key and of course, a regular URL to a Mp3 link (ie. http://filehost[.]com/song.mp3) is the value.
On the final end I'm wrapping it into Yahoo's Web Player (htrack, tabindex, etc.). All in all, the Custom Field/Link/Link Title/and Yahoo are all working well together, I just can't figure out how to get the img. The code above omits the
<img src=... /> because every option I've used to get the thumbnail of posts, have not worked. If you can help me out on that, it'd be much appreciated as well.
Example of what I'm meaning:
<a class="htrack" tabindex="1" type="audio/mpeg" title="<?php the_title(); ?>" href="<?php $key="mp3link"; echo get_post_meta($post->ID, $key, true); ?>" rel="nofollow"> **<img src="unfiltered html to image.jpg" />** <?php the_title(); ?></a>
Or Am I trying to include the image wrong all-together? Thanks in advance.