Link chosen words everywhere with keyword rules
A keyword rule links a phrase, or several words for the same thing, to one of your pages in every post that already contains them. You preview the exact sentences first, then apply the rule as one batch you can undo. A rule you switch to apply on publish also links each new post by itself, once, under the same limits. Keyword rules come with Silotree Pro, included in every paid plan.
- A WordPress user who can edit other people’s posts (an Editor or Administrator). Keyword rules is hidden from other roles.
- Silotree Pro installed and active. It comes with every paid plan, at no extra cost: see plans and limits. Rules run inside WordPress, so applying them never counts towards links written from Silotree.
Steps
Open Silotree → Keyword rules
In WordPress, open Silotree → Keyword rules. Nothing on this screen runs by itself, except a rule you switch to Apply to new posts when they’re published (see step 5), and that only for new posts.
Fill in Add a rule and press Add and preview
- Words to look for: one per line, 3 to 100 characters each. Put the words first, then their plural or another name for the same thing (up to ten), for example sourdough starter, sourdough starters, levain. Only posts that already contain one of them change, and the link keeps the words exactly as each post has them.
- Match letter case exactly: tick it to link “Rose” but not “rose”.
- Link them to: the address of one of your own posts or pages.
- Apply to new posts when they’re published: off unless you tick it. Ticked, each new post that contains the words gets this link by itself, once, after its first publish (see step 5).
Press Add and preview.
Limit where it links, if you need to
Open More options on the form for the optional settings. Leave any of them empty and the rule has no limit there.
- Priority: 0 to 100. When two rules want the same words in a post, the higher number wins. With equal numbers the longer words win, so a rule for “sourdough” is never linked out of “sourdough starter” where the “sourdough starter” rule could link it.
- Only in posts in these categories: the rule only links from posts in one of the ticked categories.
- Link from these post types and Link only to these post types: for example, link from posts but not pages, and only while the rule’s page is a page. If the page ever becomes another type, the rule stops and says why.
- Only posts published on or after: a date, to leave older posts alone.
- In at most this many posts: empty for no limit.
- Leave these posts alone: post IDs or addresses, one per line.
Check the preview and what the rule found
The preview card, marked Nothing changed yet, lists each post the rule would change and the sentence where the link would go, with the words highlighted. Each post gets the link once, on the first place one of the words appears outside headings, buttons, captions, code and existing links.
Under it, the rule’s check says how many posts contain its words, how many it can link now, and why the rest can’t, with up to three example posts for each reason: they already link there, the rule leaves them out, they are on the never-link list, they are outside its categories, post types or dates, the words only appear inside a higher-priority rule’s words, or only in headings, captions, code or links. If no post contains the words at all, it says Not found in any post. The list of rules shows each rule’s last check; Check all rules refreshes the rules checked longest ago, as many as fit in a few seconds per press, and changes nothing.
Open full size (opens in a new tab)
Every sentence a rule would change is shown before anything is written. Press Link these words
Press Link these words in 2 posts (the number matches the preview), or Not now. Each run links up to 25 posts, as one batch with a revision of each post saved first. The result says Linked 2 posts and offers Undo this run. If more posts match, apply the rule again to continue.
New posts: when you publish a post that contains a rule’s words, the publish prompt (Published. Link your new post.) lists that link under Posts it should link to with a KEYWORD RULE tag, ticked like the other suggestions (up to three rules per post, and only for rules that link to a post or page the prompt isn’t already offering). It is added only when you press Add link or the button that adds every ticked row, such as Add all 3 selected, and the rule counts the post towards its limit.
Rules switched to Apply to new posts when they’re published don’t wait for a press. Their row in the prompt is tagged KEYWORD RULE · ADDED ON PUBLISH. Leave it ticked and, if you don’t add it yourself, Silotree adds it a few minutes later. Untick it and that rule leaves this post alone; your choice is saved straight away, even if you close the prompt.
- Only on a post’s first publish: from a draft, pending review or a scheduled date. Updating a published post, publishing it again after taking it down, restoring it from the bin and importing posts never trigger it.
- Never while someone has the post open in the editor, so it can’t be overwritten by their next save. Silotree checks again every ten minutes; if the post is still open a day later, it adds nothing and the post says so.
- The same limits as pressing Link these words: the rule’s categories, post types, dates and post limit, one link per post per rule, no more than six Silotree links in a post, the never-link list, links within one language, and a higher-priority rule’s words kept for that rule.
- Stricter where Silotree can’t be sure: pages built with a page builder (Elementor included), posts whose language WPML or Polylang can’t tell, and posts that changed while the links were being added are left alone. Apply the rule by hand for those.
Each new post is its own batch in Silotree → Undo history, named Keyword rules on publish. The next time you open the post, a notice lists what was added, for example “banneton” → Banneton guide. On a site connected to Silotree, the weekly email lists the posts the rules linked that week, and leaves out any you undid. If a later save takes the links out (an editor left open overnight saving its older copy, say), Silotree notices, stops counting them towards the rule’s limit and the weekly email, and the post says so. It doesn’t add them again by itself.
Import or export rules as a CSV
The Import or export as CSV card downloads every rule as a spreadsheet, and reads one back: choose a file, or paste rows, and press Preview import.
- Silotree’s own columns are
keywords(several joined with|),url,priority,max_posts,match_case,categories(by slug),from_post_types,to_post_types,published_after(YYYY-MM-DD),excludeandon_publish(yesto apply to new posts when they’re published). Only the words and the URL are needed. - Exports from other plugins usually work as they are: Silotree reads their keyword and link columns and the priority, date, category, case and post type columns it recognises, and names any column it skips. A file with no header is read as words in the first column and the URL in the second. Semicolon- and tab-separated files work too, and so does the rules file the free plugin downloads from its Settings screen in WordPress.
- Rows for the same page with the same settings become one rule with several words. Words for a page that already has a rule are added to that rule, which keeps its own settings.
The Import preview lists every row as New rule, Adds words, Already there or Not imported, with the reason: words that already belong to a rule for another page, a URL that isn’t a page of this site, a date Silotree can’t read. Untick anything you don’t want and press Save the ticked rules. Saving creates rules only; nothing is linked until you preview and apply each one. An import waits an hour to be saved.
- Silotree’s own columns are
Or import your Yoast or Rank Math focus keywords
If Yoast SEO or Rank Math is active, a card headed Start from Yoast (or Rank Math) offers Import focus keywords. Each published post’s focus keyword becomes a rule linking to that post. Rules are only created; you still preview and apply each one. Keywords that already have a rule, or that two posts share, are skipped. For Rank Math, only a post’s first focus keyword is used.
What you should see
The rule appears in the list of saved rules with its words, its limits, how many posts it has linked and what its last check found. Imported rules carry a Yoast, Rank Math or CSV tag. Tick rules to delete several at once. Every run is listed on Silotree → Undo history as Keyword rule: “your words”, and each new post linked on publish as Keyword rules on publish. Rules that apply on publish carry an Applies on publish tag.
If it doesn’t work
- “Nothing to link right now”
No post in the rule’s scope contains the words outside headings, captions, code and existing links, or every one already links to that page, or is on the never-link list. The check under the preview says which, post by post. Pages built with a page builder Silotree only reads (Oxygen, WPBakery or Avada, for example) are skipped too. On Elementor, Divi, Beaver Builder, Bricks and Thrive Architect pages, only words in the builder’s text modules count.
- “Rules link to pages on this site”
Paste the address of one of your own posts or pages, not another site.
- “There is already a rule for …”
Each word belongs to one rule. Edit the existing rule in the list of saved rules, or take the word out of this one.
- “Not found in any post”
No published post contains the words as the rule has them. Check the spelling, and add the plural or another form on its own line: a rule for “banneton” does not match “bannetons”.
- “Silotree could not find the words and the URL in that file”
Put the words in the first column and the URL in the second, or name the columns
keywordandurl.- A rule set to apply on publish didn’t link a new post
Open the post: a notice says why when Silotree left it alone (it stayed open in the editor for a day, it is built with a page builder, its language couldn’t be told, or it is on the never-link list, or a later save took the links out). Someone may have unticked the rule’s row in the publish prompt, which leaves that post alone. Otherwise the words only appear in a heading, caption, code or link, the post already links there or has six Silotree links, or it is outside the rule’s scope or limit: the rule’s check says which. A post that was already published before you ticked the box is never linked by itself; preview and apply the rule for older posts.
- A post was skipped with a reason
For example, it already has six Silotree links, or someone is editing it. See a link didn’t land.
The same words linking to the same page from dozens of posts reads as mechanical to readers, and words that fit one sentence often don’t describe the page well in the next. Read when exact-match anchor text goes too far before you import a whole site’s focus keywords.
Questions
How many posts does one rule change?
Up to 25 posts each time you apply it, and only posts that already contain the words. Apply again to continue. “In at most this many posts” caps the total; empty means no limit.
Will a rule add the same link twice to a post?
No. Each rule links the first safe place one of its words appears, once per post, and skips posts that already link to the target. No post carries more than six Silotree links.
What happens when two rules want the same words?
The rule with the higher priority number wins; with equal numbers, the longer words win. So a rule for “sourdough” never links that word out of “sourdough starter” in a post where the “sourdough starter” rule could link it. It links a later “sourdough” instead, or skips the post and says why.
Can I bring my rules from another plugin?
Usually, yes. Export its keywords and URLs as a CSV and import the file under Import or export as CSV. Silotree reads the keyword and URL columns and the settings columns it recognises, joins rows for the same page into one rule with several words, and shows every row before anything is saved.
Do rules link new posts on their own?
Only the rules you switch to “Apply to new posts when they’re published”, which is off for every rule until you tick it. Those link each new post once, after its first publish and once nobody has it open in the editor, under the same limits as applying by hand, as a batch you can undo; untick its row in the publish prompt and it leaves that post alone. Every other rule waits: the publish prompt offers its link, already ticked, and it is added when you press the button.
Do keyword rules need a paid plan?
Yes. Keyword rules are part of Silotree Pro, a second plugin that every paid plan includes at no extra cost. Rules you saved before Pro existed are kept in your database, ready when you install it.