🔗
Step 14b15 of 21 pipeline steps

Step 14b: Internal Links (2026 Guide)

Find and inject the most relevant internal link opportunities from your published content.

Internal linking is one of the highest-ROI on-page SEO tactics that most content teams consistently underperform. Every new article you publish is an opportunity to distribute PageRank to older pages, establish topical clusters, and guide readers deeper into your site. Done manually, finding the right internal links for every article is tedious and easy to skip. seorankar.com's Step 14b automates this entirely.

By fetching your WordPress site's XML sitemap, scoring every published URL against the current article's topic, and selecting the most relevant 5–10 pages, the system generates a complete internal link map — anchor text, target URL, and suggested placement — for every article before generation begins. The AI writer then incorporates these links naturally into the content, producing a finished article that's already properly internally linked without any post-publication effort.

How Internal Link Discovery Works

The step14b-internallinks.ts module:

1. Fetches the sitemap: Downloads your WordPress site's sitemap.xml or sitemap_index.xml 2. Extracts all URLs: Parses the sitemap to get every published page and post URL 3. Fetches metadata: For each URL, retrieves the title and meta description (from cached data or a lightweight HEAD request) 4. Scores relevance: Calculates a cosine similarity score between each candidate URL's title+description vector and the current article's keyword + topic vector 5. Filters same-topic URLs: Removes URLs covering the exact same topic as the current article (to avoid self-referential linking) 6. Selects top 5–10: The highest-scoring relevant URLs become the internal link targets 7. Generates anchor text: Creates natural anchor text for each link based on the target page's primary keyword and the current article's context

The link map is stored in the project JSON and passed to the AI writer as explicit placement instructions: "Link the phrase '[anchor text]' to '[URL]' in the section about [topic]."

Output of This Step

Internal link map: anchor text → target URL pairs with suggested placement sections.

💡 Pro Tips

  • →Internal links to your highest-value commercial pages (pricing, product, comparison pages) from informational articles are especially valuable for conversion and ranking.
  • →Anchor text diversity matters — don't use the same anchor text for the same target URL across multiple articles. seorankar.com generates contextually varied anchor text per article.
  • →After 10+ articles are published, the internal link graph becomes a topical cluster structure — pages covering related subtopics all link to each other, reinforcing topical authority signals to Google.
  • →The sitemap fetch step only works if your WordPress site has an accessible sitemap. Enable RankMath or Yoast SEO sitemap to ensure this works.

Frequently Asked Questions

Q: How many internal links should each article have?

5–10 internal links per 1,000 words is a healthy range for SEO. Too few misses PageRank distribution opportunities; too many (20+) dilutes link equity and can trigger Penguin-era spam signals in extreme cases.

Q: Can I manually specify internal links for a project?

Yes. You can add specific URL + anchor text pairs to the project JSON's `internalLinks` array before running Step 14b. These will be merged with the automatically discovered links.

Q: Does this step work for non-WordPress sites?

Step 14b works for any site with an accessible XML sitemap. While the publish step (Step 19) is WordPress-specific, the internal link discovery is platform-agnostic.

Ready to automate your SEO pipeline?

seorankar.com runs all 20 steps automatically — from keyword research to WordPress publish.

Chat with us
↑ Back to top