EN / ZH
WP Keyword Link: Adding Keyword Links to WordPress Posts

When reading many blog posts, you’ll notice that articles often contain links to tags. This effectively adds internal links to your content. Anyone familiar with SEO knows that internal linking helps improve search engine indexing and produces better SEO results. That’s why many bloggers add keyword links to their posts. Today I added keyword links to my own blog, and this article introduces the plugin that makes it possible: WP Keyword Link.

The WP Keyword Link plugin adds keyword links to your WordPress blog posts — more internal and external links for better SEO! Internal links help improve search engine indexing. The plugin was modified by Liucheng (with the original author’s permission) to add support for Chinese keyword linking, primarily targeting Chinese WordPress blogs.

  1. Full support for Chinese keyword linking, with separate handling for English and Chinese keywords.

  2. Fine-grained settings for each keyword (e.g., match multiple instances? Match in comments? Internal or external link? Case-sensitive? Open in new window? etc.)

  3. Fixed the encoding issue when editing Chinese keywords.

  4. Resolved the problem of replacing keywords that already have links — existing links in your posts won’t be matched.

  5. Fixed conflicts with the WordPress Wiki plugin.

  6. Added multi-language support.

  7. Automatically converts post tags into keywords — you can toggle this on or off.

  8. Displays related posts.

  1. Download WP Keyword Link, extract it, and upload to your wp-content/plugins/ directory.

  2. Log into your WordPress admin panel and activate WP Keyword Link from the installed plugins list.

  3. After activation, a “WP KeywordLink” option will appear under the “Settings” tab.

  4. Click that option to access the plugin’s settings page.
    WP Keyword Link: Adding Keyword Links to WordPress Posts

  5. Go to KeywordLink settings.

Enter your desired keyword in the Keyword field; enter the target URL in the Link field; the Description field is for keyword descriptions (optional).

PS: Below the settings, there’s an option to “Automatically convert post tags into keywords” (mentioned in the features above). You can enable it, though I don’t use this feature on my blog since most of my in-article keywords are strung together as phrases — adding hyperlinks to them wouldn’t look good.

  1. No Follow: Adds a rel="nofollow" attribute to the link, telling search engines not to crawl or follow it.

  2. First Match Only: Only matches the first occurrence of the keyword; otherwise it will match 2 or 3 instances.

  3. New Window: Adds a target="_blank" attribute to open the link in a new window.

  4. Ignore Case: Makes matching case-insensitive — Google, google, and gooGLE would all be matched. Only effective for English keywords (not recommended).

  5. Is affiliate: Check this to mark as an internal link, distinguishing it from external links. You’ll need to add the CSS styles mentioned below.

  6. Filter in comments: Check this to match and replace keywords in the comments section.

  7. For zh_CN: Check this to support Chinese keywords, or other languages that don’t use spaces as word separators.

Content within <pre></pre> tags is automatically skipped. You can also use the custom tag <wp_nokeywordlink></wp_nokeywordlink> — content inside these tags won’t have links added.

That’s the end of the tutorial — go ahead and give it a try!