大家好,我想在我帖子的内容末尾添加一个链接。我目前在我的功能中有此功能。php文件:
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\' );
它在我的类别提要页面中显示得很好:http://stage.standforisrael.org/category/israel-in-the-news/feed但这个特定的链接并没有出现在档案中。php页面。
我错过什么了吗?
谢谢