很多博客为了防止别人复制或反代自己博客的内容,都在文章尾部添加了一行“原创内容,转载请注明出处:********”的链接内容,方法很简单.
Welcome to reprint. Please indicate the source:< ?php the_permalink() ?>
Original content, please indicate the source:
< ?php echo esc_url( __( 'https://www.*****.com/post/', '' ) ); ?>< ?php the_ID(); ?>.html
< ?php the_permalink(); ?>
第二个方法是有两个域名,或者有主域名和子域名都想链接到本文的方法.
以上代码可以自行修改或变换.将代码复制粘帖到single.php或loop-single.php文件里的指定位置(放在哪里合适需要你自己调试)即可.

sicnature ---------------------------------------------------------------------
Your current IP address is: 101.30.174.134
Your IP address location: 河北省联通
Your IP address country and region: 中国

Your current browser is:

Your current system is:

Original content, please indicate the source:
同福客栈论坛 | 蟒蛇科普 | 海南乡情论坛 | JiaYu Blog
sicnature ---------------------------------------------------------------------
Welcome to reprint. Please indicate the source https://www.myzhenai.com/post/918.html
最后
以上就是辛勤方盒最近收集整理的关于,wordpress添加原创链接和本文链接的方法的全部内容,更多相关内容请搜索靠谱客的其他文章。
发表评论 取消回复