<code id='39F02F0C4F'></code><style id='39F02F0C4F'></style>
    • <acronym id='39F02F0C4F'></acronym>
      <center id='39F02F0C4F'><center id='39F02F0C4F'><tfoot id='39F02F0C4F'></tfoot></center><abbr id='39F02F0C4F'><dir id='39F02F0C4F'><tfoot id='39F02F0C4F'></tfoot><noframes id='39F02F0C4F'>

    • <optgroup id='39F02F0C4F'><strike id='39F02F0C4F'><sup id='39F02F0C4F'></sup></strike><code id='39F02F0C4F'></code></optgroup>
        1. <b id='39F02F0C4F'><label id='39F02F0C4F'><select id='39F02F0C4F'><dt id='39F02F0C4F'><span id='39F02F0C4F'></span></dt></select></label></b><u id='39F02F0C4F'></u>
          <i id='39F02F0C4F'><strike id='39F02F0C4F'><tt id='39F02F0C4F'><pre id='39F02F0C4F'></pre></tt></strike></i>

          WordPress无问鼎下载何常在插件外部链接自动添加nofollow标签加拿大pc28预测走势

          2025-06-19 23:03:53 17

          在wordpress写文章时,

          这样所有的外部链接就会自动加上nofollow标签。有时内容会引用或分享一些外部链接地址,当然我们也可以加拿大pc28预测走势通过代码实现无插件添加方法。问鼎下载何常在严格要求的话是需要在外部链接全部加上nofollow标签。可以直接找一些wordpress插件安装。如果手动每个链接加入是很麻烦,当然目前一些w问鼎下载何常在ordpress主题设置有这个nofollow标签功能。加拿大pc28预测走势有些外部链接是没有加Nofollow标签,

          //文章自动nofollowadd_filter( 'the_content', 'tin_seo_wl');function tin_seo_wl( $content ) {    $regexp = "<a\s[^>]*href=(\"??)([^\" >]*?)\\1[^>]*>";    if(preg_match_all("/$regexp/siU", $content, $matches, PREG_SET_ORDER)) {        if( !empty($matches) ) {               $srcUrl = get_option('siteurl');            for ($i=0; $i < count($matches); $i++)            {                   $tag = $matches[$i][0];                $tag2 = $matches[$i][0];                $url = $matches[$i][0];                   $noFollow = '';                $pattern = '/target\s*=\s*"\s*_blank\s*"/';                preg_match($pattern, $tag2, $match, PREG_OFFSET_CAPTURE);                if( count($match) < 1 )                    $noFollow .= ' target="_blank" ';                   $pattern = '/rel\s*=\s*"\s*[n|d]ofollow\s*"/';                preg_match($pattern, $tag2, $match, PREG_OFFSET_CAPTURE);                if( count($match) < 1 ) $noFollow .= ' rel="nofollow" '; $pos = strpos($url,$srcUrl); if ($pos === false) { $tag = rtrim ($tag,'>');                    $tag .= $noFollow.'>';                    $content = str_replace($tag2,$tag,$content);                }            }        }    }       $content = str_replace(']]>', ']]>', $content);    return $content;}

          添加到当前主题Funcions.php 文件中,在技术层面是有传递出去权重。

          本文地址:http://dek9w.xny028cc.com/indeed/2025-06-18-16-25-00-5.html
          版权声明

          本文仅代表作者观点,不代表本站立场。
          本文系作者授权发表,未经许可,不得转载。

          热门标签

          全站热门

          AR眼镜市场风向标:雷鸟创新打破垄断,新品X3 Pro引领行业新潮流

          新年春节网页顶部两侧挂灯笼祝福代码

          苹果酝酿智能家居新布局?'homeOS'商标申请引发热议

          华为发布HUAWEI Pura 80系列 王者归位再次引领移动影像未来

          呆错免费开源图床系统源码

          浏览器网页上的图片如何批量保存下载?

          wordpress(大前端)DUX主题v5.0模板下载

          WordPress主题安装style.css样式表未包含合法的主题

          友情链接