
在functions.php文件中添加下面的代码:(测试但是没有效果,可以用下面的代码没有效果的)
function wpjiaocheng_content($more_link_text = null, $stripteaser = 0) {
$content = get_the_content($more_link_text, $stripteaser);
$content.= "转载请注明来自<a href='https://www.qi70.com'>qi70博客</a>,";
$content.= "本文地址:<a href='".get_permalink($post, true)."' title='".get_the_title($post_id)."'>".get_permalink($post, true)."</a>";
$content.= "\n 博客撰文不易,转载请注明出处和链接!";
$content = apply_filters('the_content', $content);
$content = str_replace(']]>', ']]>', $content);
echo $content;
}
一般直接在single.php的文章结尾处添加下面代码:(亲测有效)
<p>原创文章如转载,请注明本文链接: <a href=<?php the_permalink(); ?> title=”<?php the_title(); ?>”> <?php the_permalink(); ?></a> </p>
70外贸通_外贸跨境电商运营推广网站
QQ登录







