[WordPress] 外掛分享: Linkable

首頁外掛目錄 › Linkable
WordPress 外掛 Linkable 的封面圖片
30+
安裝啟用
★★★★★
5/5 分(3 則評價)
135 天前
最後更新
問題解決
WordPress 5.8+ PHP 7.4+ v1.0.0 上架:2025-08-25

內容簡介

**總結:** Linkable 是一款輕量級的外掛程式,透過自動將關鍵字轉換為內部鏈接,協助提升 SEO 和使用者體驗。

1. 自動將關鍵字鏈接至選定的文章或頁面
2. 避免重複鏈接並尊重短代碼/現有連結
3. 與區塊及經典編輯器兼容
4. 包含以下設定項目:

- 每個目標文章的最大鏈接數
- 第一次出現的測切開關

5. 可選擇將 Yoast SEO 標題整合到鏈接工具提示中
6. 所有關鍵字配置被儲存在每個文章/頁面作為元數據 - 沒有冗餘的使用者介面
7. 授權許可證:該外掛程式根據 GPLv2 或更新版本許可

**問題與答案:**

1. Linkable 外掛程式的作用是什麼?
- 自動將關鍵字轉換為內部鏈接,幫助提升 SEO 和使用者體驗。

2. Linkable 外掛程式與哪些編輯器兼容?
- 與區塊及經典編輯器兼容。

3. Linkable 外掛程式的設定項目包括哪些?
- 每個目標文章的最大鏈接數及第一次出現的測切開關。

4. 如何避免 Linkable 外掛程式產生重複鏈接?
- 透過避免重複鏈接並尊重短代碼/現有連結的功能。

5. Linkable 外掛程式的授權許可證是什麼?
- 該外掛程式根據 GPLv2 或更新版本許可。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Linkable」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Linkable is a lightweight WordPress plugin that automates internal linking by converting defined keywords into links to selected posts or pages.
Core functionality:
* Automatically links keywords to chosen posts or pages
* Works on singular posts and pages by filtering the_content at priority 20
* Searches for keyword matches inside

,

  • , , , and tags
    * Skips self-links by excluding the current post from the keyword map
    * Uses the Yoast SEO title for link tooltips when Yoast is active, otherwise falls back to the WordPress title
    * Preserves existing tags and shortcodes by backing them up before processing and restoring them afterward
    Keyword management:
    * Keywords are stored per post and per page as JSON in the linkable_tags post meta field
    * linkable_tags is registered with REST support, sanitized via sanitize_text_field, and restricted to users with edit_posts
    Settings:
    * Accessible via Settings → Linkable
    * max_links_per_target: limits how many times the same target can be linked from one post (default 1)
    * first_occurrence_only: when enabled, each keyword is linked only once per post
    Performance:
    * Builds a global keyword map from all published posts and pages with linkable_tags
    * Caches the keyword map with a transient (global_linkable_tag_map) for one hour
    * Query optimized to fetch only IDs and avoid unnecessary meta/term caching
    Editor compatibility:
    * Works with both the block editor and the classic editor
    * Enqueues an admin sidebar panel script (static/js/admin-sidebar-panel.js) with WordPress dependencies and versioning via filemtime
    Security:
    * URLs are properly escaped with esc_url
    * Link titles are sanitized and HTML-escaped
    * Meta registration includes capability and sanitization checks
    License
    This plugin is licensed under the GPLv2 or later.

    延伸相關外掛

  • 文章
    Filter
    Apply Filters
    Mastodon