qzmjef 发表于 2024-10-3 18:56:59

在 WordPress 中怎么样全面管理链接,链接转、内部链接和外边链接一个都不错失


    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">今天出个专题<span style="color: black;">文案</span>把我做的 WordPress 链接<span style="color: black;">关联</span>的功能和插件都简单介绍一下,随便<span style="color: black;">亦</span>吹吹牛,给「WordPress果酱」知识星球拉点用户。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">今天就这么朴实无华的<span style="color: black;">起始</span> WordPress 全面链接管理的<span style="color: black;">文案</span>。</p>
    <h2 style="color: black; text-align: left; margin-bottom: 10px;">链接<span style="color: black;">转</span></h2>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">第1</span>个是「链接<span style="color: black;">转</span>」,它是&nbsp;WPJAM Basic&nbsp;的扩展,<span style="color: black;">经过</span><span style="color: black;">设置链接<span style="color: black;">转</span>规则来实现页面<span style="color: black;">转</span></span>,在扩展管理页面激活<span style="color: black;">就可</span>食用(厄,<span style="color: black;">运用</span>),昨天刚升级了功能,支持<span style="color: black;">经过</span>正则格式批量实现页面<span style="color: black;">转</span>。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">扩展启用之后,在 「<span style="color: black;">WPJAM</span>」主菜单下就会新增「<span style="color: black;">链接设置</span>」的子菜单,<span style="color: black;">而后</span>在「<span style="color: black;"><span style="color: black;">转</span>链接</span>」的标签页下<span style="color: black;">陈列</span>出<span style="color: black;">此刻</span>所有的链接<span style="color: black;">转</span>设置规则:</p><img src="https://mmbiz.qpic.cn/mmbiz_png/7TZA55fBmicFF7khnE8vUMU1owt9nRLm8VOCxXr6zmbZ3assxhUrVhF8PxnmUV8ibiaAvAOU0ib5GgQJ6uwPBeicyXg/640?wx_fmt=png&amp;from=appmsg&amp;tp=webp&amp;wxfrom=5&amp;wx_lazy=1&amp;wx_co=1" style="width: 50%; margin-bottom: 20px;">
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">而后</span>点击新建就<span style="color: black;">能够</span><span style="color: black;">增多</span>新的<span style="color: black;">转</span>规则:</p><img src="https://mmbiz.qpic.cn/mmbiz_png/7TZA55fBmicFF7khnE8vUMU1owt9nRLm8bXsficWTOwUFk4dHISSOGibYtw2mjPE2JibwmvZDqrM3BEStEibJU63Q4A/640?wx_fmt=png&amp;from=appmsg&amp;tp=webp&amp;wxfrom=5&amp;wx_lazy=1&amp;wx_co=1" style="width: 50%; margin-bottom: 20px;">
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">而后</span>就<span style="color: black;">能够</span>设置匹配规则<span style="color: black;">是不是</span>开启正则匹配,<span style="color: black;">而后</span>输入原<span style="color: black;">位置</span>,<span style="color: black;">目的</span><span style="color: black;">位置</span><span style="color: black;">就可</span>。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">默认<span style="color: black;">状况</span>下「链接<span style="color: black;">转</span>」<span style="color: black;">仅在</span> WordPress 判断该页面为 404 页面的时候才进行处理,既然能够正常<span style="color: black;">表示</span>的页面,<span style="color: black;">为何</span>要<span style="color: black;">转</span>呢?<span style="color: black;">然则</span>有些<span style="color: black;">朋友</span><span style="color: black;">便是</span>想要,<span style="color: black;">因此</span><span style="color: black;">亦</span><span style="color: black;">经过</span>了选项,开启所有页面都支持<span style="color: black;">转</span>,点击批量操作旁边的「设置」按钮既可开启:</p><img src="https://mmbiz.qpic.cn/mmbiz_png/7TZA55fBmicFF7khnE8vUMU1owt9nRLm8QdIdLWicia6TYZcPtOBdwAJh3wtb01pibnzYXBwGzuiaX1QicBp5fwVJnDQ/640?wx_fmt=png&amp;from=appmsg&amp;tp=webp&amp;wxfrom=5&amp;wx_lazy=1&amp;wx_co=1" style="width: 50%; margin-bottom: 20px;">
    <h2 style="color: black; text-align: left; margin-bottom: 10px;">内部链接</h2>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">基于操作方便和效率<span style="color: black;">思虑</span>,我做了一个「WPJAM #Hashtag#」插件,自动将<span style="color: black;">文案</span>内容中&nbsp;#<span style="color: black;">专题</span>标签#&nbsp;这种格式的文字转换成内部链接。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">它支持预定义的内部链接关键字,标签和<span style="color: black;">归类</span>关键字,以及搜索链接,<span style="color: black;">首要</span>内部链接的优先级最高,接着是标签和<span style="color: black;">归类</span>链接,最后找不到的关键字,会<span style="color: black;">转</span>到搜索链接。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">安装好了插件之后,在 WordPress 后台「<span style="color: black;">WPJAM</span>」主菜单下就会新增「<span style="color: black;">链接设置</span>」的子菜单,就会新增「内部链接」标签,点击进入该标签之后就<span style="color: black;">能够</span>进行内部链接管理,把自己的常用的内部链接添加到列表中:</p><img src="https://mmbiz.qpic.cn/mmbiz_png/7TZA55fBmicFF7khnE8vUMU1owt9nRLm86bpNzia3gjnpiaibVuVlj7OyXibgczeZ3G6aUlibtRnu74S7xegIUUNicmJg/640?wx_fmt=png&amp;from=appmsg&amp;tp=webp&amp;wxfrom=5&amp;wx_lazy=1&amp;wx_co=1" style="width: 50%; margin-bottom: 20px;">
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">而后</span>在 WordPress 后台内容编辑器输入:</p><img src="https://mmbiz.qpic.cn/mmbiz_jpg/7TZA55fBmicFF7khnE8vUMU1owt9nRLm8mibrDGY8SgLToL0Wmre1pogYmFDBsVXloxWibIhQbNuaxW0M5JibJmAoQ/640?wx_fmt=jpeg&amp;from=appmsg&amp;tp=webp&amp;wxfrom=5&amp;wx_lazy=1&amp;wx_co=1" style="width: 50%; margin-bottom: 20px;">
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">前端就会<span style="color: black;">表示</span>为:</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="https://mmbiz.qpic.cn/mmbiz_png/7TZA55fBmicFF7khnE8vUMU1owt9nRLm8ZHDIhgGqJxzmujgIYUF81jGadJRVh5agichMvPWIuYWCHemoSTnb5icg/640?wx_fmt=png&amp;from=appmsg&amp;tp=webp&amp;wxfrom=5&amp;wx_lazy=1&amp;wx_co=1" style="width: 50%; margin-bottom: 20px;"></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">另一</span>在<span style="color: black;">表示</span>的时候,还<span style="color: black;">能够</span>设置内部链接文字前后<span style="color: black;">表示</span>的字符,给到了更多定制性,<span style="color: black;">一样</span>是点击批量操作旁边的「设置」按钮进行设置:</p><img src="https://mmbiz.qpic.cn/mmbiz_png/7TZA55fBmicFF7khnE8vUMU1owt9nRLm8kZMNPIOzibTicWaYHiaMUkLf6Fs5v0nVmjwZMCeC0UKOZWXj02AXzLUMQ/640?wx_fmt=png&amp;from=appmsg&amp;tp=webp&amp;wxfrom=5&amp;wx_lazy=1&amp;wx_co=1" style="width: 50%; margin-bottom: 20px;">
    <h2 style="color: black; text-align: left; margin-bottom: 10px;"><span style="color: black;">外边</span>链接</h2>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">在 WordPress 中,点击<span style="color: black;">文案</span><span style="color: black;">或</span>评论中的外链,默认都是直接<span style="color: black;">转</span>的,<span style="color: black;">无</span>经过一下中间安全确认页面<span style="color: black;">这般</span>的<span style="color: black;">过程</span>,<span style="color: black;">因此</span>我就做了一个类似的插件,名字叫做「<span style="color: black;">外边</span>链接」,它<span style="color: black;">重点</span>的功能<span style="color: black;">便是</span>实现<span style="color: black;">外边</span>链接<span style="color: black;">转</span>安全提示,<span style="color: black;">而后</span>还有<span style="color: black;">有些</span>其他外链 SEO <span style="color: black;">关联</span>的功能。</p><img src="https://mmbiz.qpic.cn/mmbiz_png/7TZA55fBmicFF7khnE8vUMU1owt9nRLm87ibu6iaEfiaiaQC0Ywpib2VARZBlxCf8xickB6pqhMJ0ibGpgZUzO9Jq4oBvw/640?wx_fmt=png&amp;from=appmsg&amp;tp=webp&amp;wxfrom=5&amp;wx_lazy=1&amp;wx_co=1" style="width: 50%; margin-bottom: 20px;">
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">首要</span><span style="color: black;">供给</span>两个开关,<span style="color: black;">能够</span>开启<span style="color: black;">文案</span>内容和评论中的外链上的 redirect <span style="color: black;">转</span>,<span style="color: black;">而后</span><span style="color: black;">文案</span>中的链接还支持加上 nofollw rel 属性,<span style="color: black;">此时</span>候就有人问<span style="color: black;">为何</span>评论<span style="color: black;">无</span>这个开关呢?<span style="color: black;">由于</span> WordPress 的评论默认就有 nofollw ref 属性的。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">通常</span>这类外链<span style="color: black;">转</span>安全提示都会有个白名单,<span style="color: black;">便是</span><span style="color: black;">哪些</span>域名<span style="color: black;">不消</span>经过这个 redirect 安全页的提示,<span style="color: black;">能够</span>直接进入,<span style="color: black;">因此</span><span style="color: black;">这儿</span><span style="color: black;">亦</span><span style="color: black;">供给</span>一个叫做「例外」的选项,只要把白名单的域名填入<span style="color: black;">就可</span>,我<span style="color: black;">研发</span>插件基本的<span style="color: black;">思虑</span>都会做的。

1fy07h 发表于 4 天前

论坛是一个舞台,让我们在这里尽情的释放自己。
页: [1]
查看完整版本: 在 WordPress 中怎么样全面管理链接,链接转、内部链接和外边链接一个都不错失