I have a wordpress post which includes some links to javascript resources (actually to render a font with Cufon). I have done this by adding the links as custom field called "link" on the post and then retrieving them in header.php via:
<?php if(get_post_meta($post->ID, 'link', false))//see if there's any link custom fields
{
foreach(get_post_meta($post->ID, 'link', false) as $link)//loop through 'em
{
echo $link;//print 'em
echo "\n";
}
}
?>
This works flawlessly on the "single post" page but doesn't work on the categories/blog front page. Any suggestions?