MT Smart Link Automation

Description

Mohsen Tavoosi, an SEO practitioner since 2012, built MT Smart Link Automation from his teaching on automatic internal linking. The rules inside it (longest keyword first, limits per page and paragraph, keyword order) are the ones he teaches.

You list the keywords and the page each group should link to. The plugin adds the links when a page is rendered. Nothing is saved into your posts, so you can turn it off at any time and every link disappears.

What it does

  • Several keywords per link (up to 20), all pointing to one URL.
  • Whole-word matching, not case sensitive. A word is never cut out of a longer token: “ai” is not linked inside “mcp-ai”, “my_ai”, “ai.com” or “/ai/v1”. A longer keyword wins over a shorter one and keeps its place, even when it reached its limit.
  • Smart link diversity (on by default): each record links its keywords in their saved order, so links spread over all your keywords.
  • On WordPress 6.9 and later the whole page is processed at once, so limits and keyword order count every widget and block of the page together. Older versions process each part of the page on its own.
  • Exclude any post, page, product or term by searching its title. Front page on or off.
  • Limit per page and per paragraph for each record. Paragraphs can be detected by <p> and <br> or by the text between headings.
  • Existing links are respected. A link with the exact keyword text and the right URL is kept. One with another URL is rewritten on screen, with two separate settings for links to your site and links to other sites (both on by default). Longer link texts and unrelated links are left alone.
  • Code and copy boxes (code, pre, kbd, and boxes with a code or copy class) are never linked and their links are never touched.
  • Links inside headings, also in the Elementor heading widget, with a setting to turn it off.
  • Link attributes for each record: Follow or Nofollow, External and Noopener, so a record can also link to another site.
  • A page never links to itself. A record can be limited to chosen posts.
  • Works with the block editor, the classic editor, Elementor, WPBakery, Toolset, WooCommerce (full and short description) and term descriptions (category, tag, product category, custom taxonomies).
  • Half-space (ZWNJ) switch. On by default. A space and a half-space inside a keyword are the same, in your keywords and in the page text, so you write each keyword once. Turn it off for languages where they differ.
  • Import and export as JSON for backups and moving between sites.
  • Master on/off switch without deactivating the plugin.
  • The admin screen is in English, with a Persian translation included, and ready for more translations.

The default settings work well for most sites. Change them only when your own site needs it.

Privacy. The plugin does not collect data, set cookies or contact other sites.Mohsen Tavoosi, an SEO practitioner since 2012, built MT Smart Link Automation from his teaching on automatic internal linking. The rules inside it (longest keyword first, limits per page and paragraph, keyword order) are the ones he teaches.

You list the keywords and the page each group should link to. The plugin adds the links when a page is rendered. Nothing is saved into your posts, so you can turn it off at any time and every link disappears.

What it does

  • Several keywords per link (up to 20), all pointing to one URL.
  • Whole-word matching, not case sensitive. A word is never cut out of a longer token: “ai” is not linked inside “mcp-ai”, “my_ai”, “ai.com” or “/ai/v1”. A longer keyword wins over a shorter one and keeps its place, even when it reached its limit.
  • Smart link diversity (on by default): each record links its keywords in their saved order, so links spread over all your keywords.
  • On WordPress 6.9 and later the whole page is processed at once, so limits and keyword order count every widget and block of the page together. Older versions process each part of the page on its own.
  • Exclude any post, page, product or term by searching its title. Front page on or off.
  • Limit per page and per paragraph for each record. Paragraphs can be detected by <p> and <br> or by the text between headings.
  • Existing links are respected. A link with the exact keyword text and the right URL is kept. One with another URL is rewritten on screen, with two separate settings for links to your site and links to other sites (both on by default). Longer link texts and unrelated links are left alone.
  • Code and copy boxes (code, pre, kbd, and boxes with a code or copy class) are never linked and their links are never touched.
  • Links inside headings, also in the Elementor heading widget, with a setting to turn it off.
  • Link attributes for each record: Follow or Nofollow, External and Noopener, so a record can also link to another site.
  • A page never links to itself. A record can be limited to chosen posts.
  • Works with the block editor, the classic editor, Elementor, WPBakery, Toolset, WooCommerce (full and short description) and term descriptions (category, tag, product category, custom taxonomies).
  • Half-space (ZWNJ) switch. On by default. A space and a half-space inside a keyword are the same, in your keywords and in the page text, so you write each keyword once. Turn it off for languages where they differ.
  • Import and export as JSON for backups and moving between sites.
  • Master on/off switch without deactivating the plugin.
  • The admin screen is in English, with a Persian translation included, and ready for more translations.

Privacy. The plugin does not collect data, set cookies or contact other sites.

Documentation

The full guide explains every page, field and setting of the plugin, with the reason behind each default and an example.

MT Smart Link Automation

Contributors: mohsentavoosiseo
Tags: internal links, seo, automatic links, keywords, elementor
Requires at least: 5.8
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 2.4.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Mohsen Tavoosi’s automatic internal and external links. Adds links to your keywords while the page is shown. Your posts are never changed.

Documentation

  • General rules: https://mohsentavoosi.com/en/p-en/automate-internal-links-en/
  • WordPress guide: https://mohsentavoosi.com/en/p-en/wordpress-auto-internal-links-en/

Screenshots

Installation

  1. Upload the plugin or install it from the Plugins screen, then activate it.
  2. Open MT Smart Links in the admin menu.
  3. In Settings, choose post types and taxonomies. In Records, add your records.
  4. If you use a page cache or CDN, clear it after changing records.1. Upload the plugin or install it from the Plugins screen, then activate it.
  5. Open MT Smart Links in the admin menu.
  6. In Settings, choose post types and taxonomies. In Records, add your records.
  7. If you use a page cache or CDN, clear it after changing records.

FAQ

Where can I read what each setting does?

Every setting has its own section in the WordPress guide, with its default, the reason for that default and an example. The links under Documentation open each section directly.

Where do I report a bug or suggest an improvement?

In the support forum of this plugin. Tell us the page and the record where you saw the problem.

Does it change my posts?

No. Links exist only in the page output. Deactivating the plugin or turning the master switch off removes them all.

What does the half-space switch do?

With it on, درب اتوماتیک and درب‌اتوماتیک are the same keyword. A half-space at the edge of a word still blocks a partial match, so کتاب is not linked inside کتاب‌ها.

Do I need to clear my cache?

Yes, page caches and CDNs keep the old HTML. Clear them after you change records.

Does it work with Elementor?

Yes. Links are added to the text widgets of the page’s own content (text editor, accordion, toggle, tabs). Menus, buttons, post grids and widgets inside a header, footer or popup template are never processed, and their links do not use up the limit of the page. The limits count every text widget of the page together. The filter mtal_elementor_widgets changes the widget list.

What is the whole-page processing on WordPress 6.9?

WordPress 6.9 and later let a plugin work on the finished page without opening its own output buffer. The plugin uses it to count limits over the whole page. Elementor turns this off on its own pages, where the plugin finishes each Elementor document as one unit instead. The filter mtal_force_page_buffer turns the whole-page buffer on for Elementor pages as well, and mtal_whole_page turns it off everywhere.

Why is the short description of my WooCommerce product not linked?

On block themes the short description is printed by the post excerpt block, and WordPress never sends excerpts through the content filters. The full description is linked. Classic themes print the short description through the WooCommerce filter and it is linked.

Why is my URL refused as “same 191 characters”?

The database index of the URL column covers the first 191 characters. A second record whose URL starts with the same 191 characters is refused. Use a shorter URL, for example without the long query part.

What happens when I delete the plugin?

Your records are kept unless you ticked “Delete all plugin data when the plugin is deleted”.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“MT Smart Link Automation” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

2.4.1

  • New: setting “Vary the anchor text” for phrases that sit inside each other in the SAME group (one address). When a page links the longer phrase twice or more and the shorter phrase never, the last of those links goes to the shorter phrase. The number of links and every limit stay the same, and the first link of the longer phrase always stays. Off by default. The two older settings for a phrase inside a longer phrase only work between different groups, as before.
  • Settings: the three settings about a phrase inside a longer phrase now sit in one row, in two boxes (different groups, same group), so each tick says which situation it covers. No combination of them can conflict.

2.4.0

  • Fix: a keyword is no longer linked inside a longer token. Hyphen and underscore join words, and so do . / : @ when a letter or digit follows (“easy-mcp-ai/v1/mcp” no longer gets a link on “ai”).
  • Fix: boxes of text to copy are never linked: kbd, samp and any element with a code or copy class (mt-code, wp-block-code, copy-…), besides code and pre. Links inside them are never touched.
  • New: setting “Headings” (on by default). Keywords inside headings get links in every editor, now also in the Elementor heading widget. Off: headings never get links.
  • New: two settings for manual links whose text is a keyword but whose URL is another one: rewrite internal ones, rewrite external ones (both on by default). Off: such a link stays as it is.
  • New: link attributes for each record: Follow or Nofollow (one at a time), External and Noopener. Kept in Export and Import.
  • Database: a new column for the link attributes is added on update. Nothing else in the table changes.

2.3.0

  • New: top-level menu “MT Smart Links” with four pages: Records, Settings, How to use, Import / Export.
  • New: Persian translation (fa_IR) is included.
  • Fix: on Elementor pages the page limit and the paragraph limit are exact, also when the text is in several widgets.
  • Fix: a link you wrote yourself to the same URL also counts for the paragraph limit.
  • Fix: the same URL in two forms (trailing slash, host case, #anchor) is one URL for the duplicate check, in the form and in Import.
  • Fix: the screen no longer says “Record saved” when the database refused the row. URLs that start with the same 191 characters as another record’s URL are refused with a clear message.
  • Fix: WooCommerce Store API data for block themes is not linked and does not use up the links of the page. REST requests are skipped.
  • New: filter mtal_force_page_buffer for the whole-page buffer on Elementor pages.

2.2.3

  • Fix: on Elementor sites, a menu, button or post grid in the header or footer that links to a target used up that target’s limit on the page, so the article text got no link. Only text widgets of the page’s own Elementor content are processed now. Header, footer and other templates are never touched or counted.

2.2.2

  • Rename: the plugin is now MT Smart Link Automation (slug mt-smart-link-automation). Records, settings and files exported under earlier names keep working.
  • Fix: the plugin no longer opens an output buffer. The whole page is processed with the WordPress 6.9 filter wp_template_enhancement_output_buffer. Older WordPress versions process each part of the page on its own.
  • Change: WooCommerce category descriptions are processed with the WooCommerce filter woocommerce_taxonomy_archive_description_raw (WooCommerce 6.7 and later).
  • Fix: upgrading from a version before 2.0 no longer deletes keywords. Old rows that pointed to the same URL are merged into one record with all their keywords.

2.2.1

  • Fix: Save, Delete, Import, Export and the title search in the settings screen used internal names from before the rename. They now work.
  • Dev: database queries on the plugin’s own table are marked for Plugin Check. No change in behavior.

2.2.0

  • Change: internal names changed from ail_ to mtal_. Your records and settings move automatically on the first load. Export a backup before updating.
  • New: a longer keyword always keeps its place, even after it reached its limit. A shorter keyword is never linked inside it.
  • New: “Smart link diversity order by keywords per link” (on by default). Link 1 goes to keyword 1, the next to the first keyword not linked yet on the page, up to keyword 20, then it starts again.
  • New: option to unlock longer phrases after their page limit (off by default).
  • New: option to link a shorter phrase once inside a longer one when it has no link yet on the page (off by default).
  • New: the whole page is processed in one pass. Only content is changed, never menus, header or footer.
  • New: front page switch, and an exclusion list with title search for posts, pages, products and terms.
  • New: “Only on these pages” in a record is picked by title search instead of typing IDs.
  • Change: the old “longer keyword first inside one record” order is replaced by smart link diversity. Turn it off to link in text order.
  • Fix: a target URL saved with &amp; is no longer escaped twice.

2.1.0

  • New: half-space (ZWNJ) switch, on by default.
  • New: choose post types and taxonomies. Term descriptions and WooCommerce short descriptions are supported.
  • New: WPBakery, Toolset and block editor coverage through the content filter, with protection against double processing on Elementor pages.
  • New: URL safety check (http, https or a path starting with one slash).
  • New: uninstall option, update-safe database upgrade, translation support.
  • Fix: the longest keyword now wins across all records and paragraph modes.
  • Fix: every post gets its own counters on archive pages.
  • Fix: Import validates the whole file before it replaces anything, and refuses files over 1 MB.
  • Fix: the “maximum 20 keywords” message now appears.
  • Fix: links with & in the URL are no longer double escaped.

2.0.0

  • Multiple keywords per record, paragraph limits, Import and Export.= 2.4.1 =
  • New: setting “Vary the anchor text” for phrases that sit inside each other in the SAME group (one address). When a page links the longer phrase twice or more and the shorter phrase never, the last of those links goes to the shorter phrase. The number of links and every limit stay the same, and the first link of the longer phrase always stays. Off by default. The two older settings for a phrase inside a longer phrase only work between different groups, as before.
  • Settings: the three settings about a phrase inside a longer phrase now sit in one row, in two boxes (different groups, same group), so each tick says which situation it covers. No combination of them can conflict.

2.4.0

  • Fix: a keyword is no longer linked inside a longer token. Hyphen and underscore join words, and so do . / : @ when a letter or digit follows (“easy-mcp-ai/v1/mcp” no longer gets a link on “ai”).
  • Fix: boxes of text to copy are never linked: kbd, samp and any element with a code or copy class (mt-code, wp-block-code, copy-…), besides code and pre. Links inside them are never touched.
  • New: setting “Headings” (on by default). Keywords inside headings get links in every editor, now also in the Elementor heading widget. Off: headings never get links.
  • New: two settings for manual links whose text is a keyword but whose URL is another one: rewrite internal ones, rewrite external ones (both on by default). Off: such a link stays as it is.
  • New: link attributes for each record: Follow or Nofollow (one at a time), External and Noopener. Kept in Export and Import.
  • Database: a new column for the link attributes is added on update. Nothing else in the table changes.

2.3.0

  • New: top-level menu “MT Smart Links” with four pages: Records, Settings, How to use, Import / Export.
  • New: Persian translation (fa_IR) is included.
  • Fix: on Elementor pages the page limit and the paragraph limit are exact, also when the text is in several widgets.
  • Fix: a link you wrote yourself to the same URL also counts for the paragraph limit.
  • Fix: the same URL in two forms (trailing slash, host case, #anchor) is one URL for the duplicate check, in the form and in Import.
  • Fix: the screen no longer says “Record saved” when the database refused the row. URLs that start with the same 191 characters as another record’s URL are refused with a clear message.
  • Fix: WooCommerce Store API data for block themes is not linked and does not use up the links of the page. REST requests are skipped.
  • New: filter mtal_force_page_buffer for the whole-page buffer on Elementor pages.

2.2.3

  • Fix: on Elementor sites, a menu, button or post grid in the header or footer that links to a target used up that target’s limit on the page, so the article text got no link. Only text widgets of the page’s own Elementor content are processed now. Header, footer and other templates are never touched or counted.

2.2.2

  • Rename: the plugin is now MT Smart Link Automation (slug mt-smart-link-automation). Records, settings and files exported under earlier names keep working.
  • Fix: the plugin no longer opens an output buffer. The whole page is processed with the WordPress 6.9 filter wp_template_enhancement_output_buffer. Older WordPress versions process each part of the page on its own.
  • Change: WooCommerce category descriptions are processed with the WooCommerce filter woocommerce_taxonomy_archive_description_raw (WooCommerce 6.7 and later).
  • Fix: upgrading from a version before 2.0 no longer deletes keywords. Old rows that pointed to the same URL are merged into one record with all their keywords.

2.2.1

  • Fix: Save, Delete, Import, Export and the title search in the settings screen used internal names from before the rename. They now work.
  • Dev: database queries on the plugin’s own table are marked for Plugin Check. No change in behavior.

2.2.0

  • Change: internal names changed from ail_ to mtal_. Your records and settings move automatically on the first load. Export a backup before updating.
  • New: a longer keyword always keeps its place, even after it reached its limit. A shorter keyword is never linked inside it.
  • New: “Smart link diversity order by keywords per link” (on by default). Link 1 goes to keyword 1, the next to the first keyword not linked yet on the page, up to keyword 20, then it starts again.
  • New: option to unlock longer phrases after their page limit (off by default).
  • New: option to link a shorter phrase once inside a longer one when it has no link yet on the page (off by default).
  • New: the whole page is processed in one pass. Only content is changed, never menus, header or footer.
  • New: front page switch, and an exclusion list with title search for posts, pages, products and terms.
  • New: “Only on these pages” in a record is picked by title search instead of typing IDs.
  • Change: the old “longer keyword first inside one record” order is replaced by smart link diversity. Turn it off to link in text order.
  • Fix: a target URL saved with &amp; is no longer escaped twice.

2.1.0

  • New: half-space (ZWNJ) switch, on by default.
  • New: choose post types and taxonomies. Term descriptions and WooCommerce short descriptions are supported.
  • New: WPBakery, Toolset and block editor coverage through the content filter, with protection against double processing on Elementor pages.
  • New: URL safety check (http, https or a path starting with one slash).
  • New: uninstall option, update-safe database upgrade, translation support.
  • Fix: the longest keyword now wins across all records and paragraph modes.
  • Fix: every post gets its own counters on archive pages.
  • Fix: Import validates the whole file before it replaces anything, and refuses files over 1 MB.
  • Fix: the “maximum 20 keywords” message now appears.
  • Fix: links with & in the URL are no longer double escaped.

2.0.0

  • Multiple keywords per record, paragraph limits, Import and Export.