在functions.php文件中添加下面的代码:
function wpjiaocheng_content($more_link_text = null, $stripteaser = 0) 没悉{
$content = get_the_content($more_link_text, $stripteaser);
$content.= "转载枯陆乎请注明来自wordpress教程网,";
$content.= "本文地址:".get_permalink($post, true)."";
$content.= "\n wordpress教程网文章均为原创,转载请注明出处和链接悉昌!";
$content = apply_filters('the_content', $content);
$content = str_replace(']]>', ']]>', $content);
echo $content;
}
直接在single.php的文章结尾处添加下面代码:
原创文章如转载,请注明本文链接: ” title=””>