Hello guys I would like to append a link to the end of the content within my post. I currently have this in my functions.php file:
function ifcj_comment_link() {
global $post;
return ' <a href="'. get_post_meta($post->ID, 'Israel In The News Audio Link', true) . '">' . __( '<div id="audio-player">Testing</div>', 'ifcj' ) . '</a> ';
}
function ifcj_custom_excerpt_more( $output ) {
if ( has_excerpt() || in_category( _x('israel-in-the-news', 'israel-in-the-news category slug', 'ifcj') ) &&! is_attachment() ) {
$output .= ifcj_comment_link();
}
return $output;
}
add_filter( 'get_the_excerpt', 'ifcj_custom_excerpt_more' );
It displays just fine in my categories feed page: http://stage.standforisrael.org/category/israel-in-the-news/feed
But that particular link is not showing up on the archive.php page.
Am I missing something here?
Thanks