Directory / plugin

LeKeyLinks

v1.0.6 · by 老蒋和他的小伙伴

Automatically convert keywords in posts into links. Supports Chinese and English, priority, max replaces, and per-post link limits.

About this plugin

LeKeyLinks helps you add internal links automatically. After you define keywords and target URLs in the admin area, matching text in post content is replaced with links while existing links and code blocks are left alone.

Features

  • Chinese and English keywords (English uses word boundaries)
  • Keyword priority and per-keyword maximum replacements
  • Per-post total link limit (default 5, configurable) to reduce processing cost
  • Skips text inside existing <a> tags
  • Skips <pre>, <code>, <script>, <style>, and similar regions
  • Keyword list caching to reduce database queries
  • Fast content pre-check before DOM parsing
  • Optional replacement in excerpts (the_excerpt)
  • Link styling: bold, color, and rel tokens (noopener, nofollow, sponsored, ugc)
  • Per-post skip via classic editor, block editor, or _lekl_skip meta
  • Feeds are not processed; content replacement defaults to singular views

Management

  • Add, edit, delete, search, and paginate keywords
  • Central settings screen for switches and styles

Plugin tags