How To Detect And Repair Broken Links In WordPress

Managing broken links is an important part of website maintenance. In this tutorial, we show you how to find and fix broken links in WordPress.

[adrotate group=”6″]

How To Find And Repair Broken Links In WordPressIf your website includes links to other websites, it’s quite probable that at some point and as more content is added, some of your links will point to pages that have been moved or deleted, or to websites that no longer exist.

These ‘broken’ links can affect your visitors’ experience, your business, your reputation, and your website’s SEO. Managing broken links, therefore, is an important part of website maintenance. In this tutorial, you will learn how to detect and fix broken links in WordPress.

How To Find And Repair Broken Links In WordPress

The WordPress built-in linking tool automatically checks when you add hyperlinks to your content and detects broken links. If you add a broken link (e.g. add a space in the URL), WordPress will let you know, allowing you to update your link before publishing it to your site …

WordPress automatically detects broken links

(WordPress automatically detects broken links. Source: WordPress 4.6 Features)

Although WordPress can automatically detect if you type in a broken link, it can’t detect whether a correctly entered link leads to a ‘not found’ page error or a destination page that can’t be accessed (e.g. server down or website deleted).

The Importance Of Avoiding Broken Links On Your Website

When you have no control over other websites, it’s hard to keep track of what is going on with links pointing from your site to external websites.

For example, let’s take a look at some common scenarios …

Destination Page Has Moved

Let’s suppose you add a link to a page on another company’s website containing information about a product, service, reference, policies, etc.

The company then decides to re-organize its content and moves this information to a different section of its website.

Now, when visitors click on the link, they end up in an error page, or a page containing something different than they were expecting to see …

This page has been moved elsewhere, leading to a 'page not found' error!

(This page has been moved elsewhere, leading to a ‘page not found’ error!)

Most companies won’t notify you when they’ve made internal changes to their websites, so it’s up to you to notice errors and fix this to avoid giving your visitors a bad user experience …

Linking to external sites can be tricky because they can make changes to their website any time they choose without informing you!

(Linking to external sites can be tricky because they can make changes to their website any time they choose without informing you!)

Destination Site No Longer Exists

Let’s say that you run an e-commerce store, or affiliate review site promoting products from other websites …

Do you review other people's products on your site?

(Do you review other people’s products on your site?)

In this example, when you click on the destination URL of the product shown above …

Do you know if all of your links are pointing to working pages?

(Do you know if all of your links are pointing to working pages?)

The site cannot be reached. The server could be temporarily down or the product vendor has gone out of business and their website has been permanently deleted …

This site can't be reached!

(This website can’t be reached!)

Over time, you will probably add a number of links from your content to many external websites and this will only multiply the problem. The more external links you add from your site, the greater the likelihood of having broken links on your site, or links pointing to pages with errors or non-existent pages …

The more links you add from your site to external sites, the more 'dead' links you will probably have

(The more links you add from your site to external sites, the greater the likelihood of having ‘broken’ links) 

Can you imagine what sending people to pages or sites that don’t exist can do to your business?

Normally, there is no way to keep track of what is happening on all the websites that you link to and do not control. Dead links (i.e. ‘broken hyperlinks’) are annoying to visitors and can have a negative impact on your online business and your reputation.

Having broken links can affect your site in many ways:

  • You can frustrate and even lose customers and visitors.
  • You can lose sales if potential customers can’t find what they are looking for.
  • You can lose money if you are placing advertising banners on others sites that link to missing pages.
  • You can damage your reputation online if there are too many broken links on your site. This gives visitors the impression that you don’t maintain or care for your website, and have no regard for visitors having a positive user experience.
  • It can have a negative impact on your website’s ranking with search engines.

As more content is added to your site, the greater the chances are that some of the hyperlinks in your posts and pages will end up broken and lead visitors to pages that are no longer valid or even present in your site.

Broken links can be caused by a number of internal and external site factors, including:

  • Failure to maintain proper navigation links between the pages on your site
  • Moving content around your site
  • Renaming or deleting your web pages
  • Typing in URL addresses incorrectly when creating links
  • Replicating pages containing broken links across your site or other sites
  • Domain names expiring
  • External websites get sold, relocated, or deleted
  • External pages get removed or relocated
  • and more.

Important Info

When a visitor tries to access a page on your site that doesn’t exist, WordPress will automatically display something called a 404 error page. Broken links will lead to an increase in “Page Not Found” errors and other unsuccessful responses.

To learn how to customize your WordPress 404 error page, see the tutorial below:

How To Detect And Fix Broken Links In WordPress

Making sure that all links on your site are working correctly is important for both your visitors and for search engines. Clicking on links that don’t work creates a bad experience for users, and search engines penalize sites that have too many broken links.

Unless you have a single-page website, however, it is almost impossible to manually check that all of the links on your site are working correctly all of the time. Fortunately, there are plugins that can do this job for you automatically.

In this tutorial, you will learn how to find and fix broken links using a free WordPress link management plugin called Broken Link Checker.

Broken Link Checker

Broken Link Checker

(Broken Link Checker)

Plugin URL

https://wordpress.org/plugins/broken-link-checker/

Plugin Description

Broken Link Checker is an essential WordPress maintenance plugin that will monitor your site for broken links and notify you if any links errors are detected.

Some of the plugin’s features include:

  • Monitoring links in your posts, pages, comments, links and even custom fields.
  • Detecting links that don’t work, missing images and redirects.
  • Notifying you via the Dashboard or by email.
  • Making broken links display differently in posts (optional).
  • Preventing search engines from following broken links (optional).
  • Ability to search and filter links by URL, anchor text and so on.
  • Editing links directly from the plugin’s page, without having to manually update each post.
  • Highly configurable.
Plugin Installation

Go to the admin menu and choose Plugins > Add New

Plugins Menu - Add New

(Plugins Menu – Add New)

In the ‘Add Plugins’ screen, type in “broken link checker” into the keyword search field …

Add Plugins - search for 'Broken Link Checker'

(Add Plugins – search for ‘Broken Link Checker’)

Locate the plugin in the search results section and click Install Now

Install Broken Link Checker

(Install Broken Link Checker)

After your plugin has been installed, make sure you activate it …

Activate the plugin

(Activate the plugin)

You can also activate your plugin in the ‘Plugins’ screen …

Plugins Screen - Activate Broken Link Checker

(Plugins Screen – Activate Broken Link Checker)

After your plugin has been activated, click on Settings

Broken Link Checker - Settings

(Broken Link Checker – Settings)

You can also get to the plugin’s settings screen by selecting Settings > Link Checker from your dashboard menu …

Settings Menu > Link Checker

(Settings Menu > Link Checker)

This takes you to the ‘Broken Link Checker Options’ screen …

Broken Link Checker Options Screen

(Broken Link Checker Options Screen)

Plugin Configuration

The “Broken Link Checker Options” page is broken into several tabs. Let’s go through each of these tabs and configure the plugin settings …

Broken Link Checker > General

Broken Link Checker > General Tab

(Broken Link Checker > General Settings)

Unless you have a particular need to change the plugin’s default settings, just leave all the options on this tab as they are:

Status

There is nothing to configure in this section. The plugin provides an update of the number of broken links found with a link to more information, lets you know about its status (i.e. whether it is currently checking your site from broken links or not.), and notifies you about the number of unique URLs it has detected in your links …

General Settings - Status

(General Settings – Status)

If you want to see the debug info used by the plugin when checking your links (you’ll need this information if requesting plugin support), then click on the “Show debug info” link under “Status” …

Status - Show Debug Info

(Status – Show debug info)

Check each link

Enter a frequency period (in hours) for the plugin to check your site for broken links into the “Every XX hours” field …

General Settings - Check Each Link

(General Settings – Check each link)

The plugin will then check existing links on your site every “XX” hours as per your settings. Any new links that you add to your site will be checked immediately for validation.

Email Notifications

Leave the default settings to receive email notifications about newly detected broken links. If multiple authors contribute content to your site, then you may also want to check the option to “Send authors e-mail notifications about broken links in their posts” …

General Settings - Email Notifications

(General Settings – Email notifications)

Notification e-mail address

If you want the plugin to send broken link notification emails to an email address other than the one you have specified in the WordPress General Settings section (e.g. to notify your webmaster or a site manager), then enter the email address into the field in this section …

General Settings - Notification Email Address

(General settings – Notification email address)

Link tweaks

This section lets you specify whether the plugin should highlight broken or removed links on your pages with custom formatting (e.g. display broken links with a strikethrough, or in a different color), and also if you want search engines to stop following your broken links (tip: don’t enable this option if you plan to fix your links) …

General settings - Link tweaks

(General settings – Link tweaks)

To apply custom formatting to your links, click on the Edit CSS link, then edit the CSS code in the section that will open up below the option …

Edit CSS

(Edit CSS)

Useful Information

To customize the format of your links, you will need to have some basic knowledge of editing CSS (Cascading Style Sheets).

If you want to learn basic CSS, then visit the sites below:

The screenshot below shows an example of how a broken link using the default “strikethrough” style setting displays to site visitors …

Broken Links

(Broken Links)

Suggestions

If you leave this option enabled, the plugin will suggest alternatives to broken links …

General Settings - Suggestions

(General Settings – Suggestions)

These suggestions can be useful when editing broken links (see ‘Plugin Usage’ section below) …

Edit Link - Suggestions

(Edit Link – Suggestions)

If you don’t want Broken Link Checker to suggest alternative URLs then disable the checkbox in the Suggestions section.

Warnings

If you leave this option enabled, the plugin show minor problems as ‘warnings’ instead of ‘broken’ links …

General settings - Warnings

(General settings – Warnings)

Click Save Changes when finished to update your plugin settings …

Save changes to update your settings

(Save changes to update your settings)

Broken Link Checker Options > Look For Links In

Broken Link Checker > 'Look For Links In' Tab

(Broken Link Checker > ‘Look For Links In’ Settings)

This section specifies which areas of your site the plugin will check for broken links.

You can enable the plugin to check these areas of your site by ticking the checkboxes in the “Look for links in” section: Blogroll items (links), comments, custom fields (can be customized), pages and posts.

Furthermore, you can specify that the plugin check only posts that have been assigned certain statuses (e.g. published, scheduled, draft, pending or private) in the “Post statuses” section of the tab.

Click Save Changes when finished to update your plugin settings …

Remember to save your changes

(Remember to save your changes)

Broken Link Checker Options > Which Links To Check

Broken Link Checker Options > 'Which Links To Check' Tab

(Broken Link Checker Options > ‘Which Links To Check’ Settings)

In this tab, you can enable the type of links that Broken Link Checker will analyze in the “Link Types” section, and add words to the “Exclusion List” section (one per line) to prevent the plugin from searching URLs containing the words you specify.

Once again, remember to save your settings if making any changes to this section.

Broken Link Checker Options > Protocols & APIs

Broken Link Checker Options > 'Protocols & APIs' Tab

(Broken Link Checker Options > ‘Protocols & APIs’ Settings)

In the Protocols & APIs tab, you can specify which methods the plugin should use to check links on your site.

The “Basic HTTP” option, which is enabled by default, is the same as typing in the URLs into an internet browser.

If your site uses any of the services listed in this section extensively (e.g. you have loads of YouTube videos on your site), then consider selecting additional methods to check links, otherwise, just leave this tab as is.

Broken Link Checker Options > Advanced

Broken Link Checker Options > 'Advanced' Settings

(Broken Link Checker Options > ‘Advanced’ Tab)

The options in the Advanced tab allow you to configure and finetune a number of important plugin parameters.

These parameters include:

Timeout – This is the length of time the plugin will attempt to verify whether a link is valid or not before declaring it “broken”.

Link Monitor – Specify when to run the plugin by enabling/disabling checkboxes for either “Run continuously while the Dashboard is open”, “Run hourly in the background”, both or none.

Show the dashboard widget for – Select which types of users can see the plugin information in the dashboard (see screenshot below for example) …

Dashboard - Broken Links Widget

(Dashboard – Broken Links Widget)

To learn about assigning and managing user roles, see the tutorial below:

Max. Execution Time – Specify how long the plugin should run for when executing background checks before stopping.

Server load limit – Link checking will be suspended if the average server load rises above the number specified here. Leave this field blank to disable load limiting.

Forced recheck – If you click the “Re-check all pages” button, the plugin will empty its link database and recheck the entire site from scratch …

Broken Link Checker Options - Forced Recheck

(Broken Link Checker Options – Forced Recheck)

If you make any changes to the plugin settings remember to click on the Save Changes button to update your plugin settings …

Save your changes

(Save your changes)

Your plugin is now configured.

Plugin Usage

Once installed and configured, the plugin will begin scanning through your posts, pages, blogroll and other content looking for links.

You can monitor the progress of link scans by going to Settings > Link Checker

Settings Menu > Link Checker

(Settings Menu > Link Checker)

Depending on the size of your site this process (called parsing) can take from a few minutes up to an hour or more …

Broken Link Checker continually monitors your site for broken links

(Broken Link Checker continually checks your site for broken links)

When parsing is complete, the plugin will start checking each link to make sure they are working. Again, how long this process takes depends on the size and number of links on your site.

To view and manage any broken links found on your site, select Tools > Broken Links in your WP admin area …

Tools > Broken Links

(Tools > Broken Links)

This brings you to the “Broken Links” screen, which displays a list of all the broken links found on your site and allows you to manage these …

Broken Links Screen

(Broken Links Screen)

If Broken Link Checker detects that all links are working fine, you will see a “No broken links found” message when you visit this page …

No broken links found

(No broken links found)

If the plugin detects any broken links, it will display the number of broken links found …

Broken links found

(Broken links found)

It will also notify this in your dashboard (if you have enabled the correct user permission settings) …

Dashboard - Broken Link Checker Widget

(Dashboard – Broken Link Checker Widget)

You will also receive an email notification (if you have configured the plugin settings to receive emails) …

Broken Links - Notification Email

(Broken Links – Notification email)

Clicking on the link at the bottom of the email takes you to the “Broken Links” screen on your WordPress site (you may have to log in) …

Click email link to view all broken links

(Click email link to view all broken links)

Managing Links In The Broken Links Screen

The main menu at the top of the “Broken Links” screen lets you view a list of different link categories:

  • Broken
  • Warnings
  • Redirects
  • Dismissed
  • All

Let’s go through each of these menu options:

Broken

Broken Links - Broken Menu

(Broken Links – Broken menu)

This table contains a list of all the broken links detected on your site …

Table of broken links

(List of broken links)

You can manage your broken links individually or in bulk.

Managing Broken Links Individually

Hover your mouse over any link listed in the URL column, and a menu will appear with a number of link functions that you can perform:

Broken link management options

(Broken link management options)

Edit URL

Locate the link you want to edit …

Select the link to edit

(Select the link to edit)

Hover over the link and click Edit URL to make changes to your link …

Edit URL

(Edit URL)

This expands the item, allowing you to edit the link’s anchor text and URL …

Edit your link URL or accept suggested alternative

(Edit your link URL or accept suggested alternative)

Note: If the link is present in more than one place (e.g. both in a post and in the blogroll), all occurrences of that URL will be changed.

Click Update when done, or Cancel to discard your changes.

Unlink

Click Unlink to remove the link from all posts …

Unlink removes links from your posts

(Unlink removes links from your posts)

The plugin will go through your site and unlink all instances of the URL immediately.

Note: Unlinking removes the link but leaves the link text intact.

Not Broken

Click Not broken to remove the link from the list of broken links and mark the URL as valid …

Not broken

(Not broken)

Not broken lets you manually mark a ‘broken’ link as working. This is useful if you know it was incorrectly detected as broken due to a network glitch or a bug. The marked link will still be checked periodically, but the plugin won’t consider it broken unless it gets a new result.

Dismiss

Click Dismiss to hide the link. Broken Link Checker will not report it again unless its status changes …

Dismiss

(Dismiss)

Recheck

Click Recheck to check if the status of your link has changed …

Recheck

(Recheck)

Broken Link Checker will immediately begin checking the link and return the latest status result …

Link status is being rechecked

(Link status is being rechecked)

Managing Broken Links In Bulk

You can perform the same functions used on individual links in bulk, plus some additional ones like rechecking links and fixing redirects by selecting multiple links from the table and choosing one of the Bulk Actions drop-down menu options …

Broken Links - Bulk Actions menu

(Broken Links – Bulk Actions menu)

In addition to the URL column, the Broken Links section table also displays information like Status, Link Text, and Source.

The Status and Link Text columns let you see more information about the status of your links, images, etc …

Link Status

(Link Status)

Click on a link in the Status or Link Text columns…

Click to view Status Details

(Click to view Status Details)

And the link entry expands to show detailed information about the link, including how often the link has failed the validity tests, how long the link has been broken for, and a whole lot more …

Status details

(Status details)

Warnings

The ‘Warnings’ page lists problems that are probably temporary or suspected to be false positives. After a period of time, warnings will be reclassified as broken links …

Warnings

(Warnings)

Redirects

This section of the Broken Links screen lists all your link redirects …

Redirected Links

(Redirects)

You can view the redirected URLs under the Redirect URL column (see ‘Additional Plugin Information’ section further below to learn how to display the Redirect URL column on your screen) …

View Redirect URLs

(View Redirect URLs)

As well as viewing a list of redirected links and link status information, you can also perform a number of link operations by hovering your mouse over their title and choosing one of the link menu options (Edit URL, Unlink, Dismiss) …

Redirected Links - Options menu

(Redirected Links – Options menu)

Dismissed

This section displays a list of all the links you have previously dismissed (i.e. links that the plugin will not report on unless or until the status of the link changes) …

Dismissed menu

(Dismissed menu)

In the Dismissed Links section you can perform various link operations such as Edit URL, Unlink (remove link from all posts), specify the link as Not broken, and Undismiss your links …

Dismissed Links - Menu options

(Dismissed Links – Menu options)

All

All menu

(All menu)

This section displays a list of all links found on your site …

View all links

(View all links)

Hover over a link to perform link operations (Edit URL, Unlink, Not broken, Recheck) …

Link options

(Link options)

You can also perform regular post operations such as Edit, Trash, and View posts containing the link in the Source column …

Source column options

(Source column options)

Additional Plugin Information

Here are some additional tips on using the Broken Link Checker plugin:

Protect Users From Malware

If destination links point to sites containing malware, the plugin will mark the link as broken …

503 Service Unavailable

(503 Service Unavailable)

This protects users from clicking through to sites affected by malware from your site …

'Site contains malware' warning

(‘Site contains malware’ warning)

The plugin will automatically restore the broken link to normal once the site owner fixes the problem (i.e. removes malware from their site).

Go To Broken Links

Navigate directly to the ‘Broken Links’ screen from your ‘Broken Links Options’ page by clicking on the Go to Broken Links button in the top right-hand section of your admin screen …

Go to Broken Link

(Go to Broken Links)

Screen Options Tab

You can also hide or display columns for the plugin screens and set additional screen settings when viewing your broken links by clicking on the Screen Options tab in the top right-hand section of your admin screen …

Screen Options tab

(Screen Options tab)

Here you can enable or disable Table columns, set the number of links to show per page, and set miscellaneous settings for your links, such as highlighting links that have been broken for ‘X’ number of days, and color-coding different status codes for easier visual recognition …

Screen Options

(Screen Options)

As you can see, Broken Link Checker is a comprehensive and useful plugin to install on your WordPress site.

For more information about this plugin, visit the plugin’s website:

Info

Some web hosting companies will not allow you to install a plugin like Broken Link Checker on your WordPress site, as it can cause a high load on their servers or create an unnatural number of MySQL queries. if you experience any problems using this plugin, check with your host.

Congratulations! Now you know how to detect and repair broken links in WordPress and how to set up a plugin that will automatically scan your site and continuously check for broken links.

How To Detect And Repair Broken Links In WordPress

(Source: Pixabay)

[adrotate group=”6″]

***

[adrotate group=”3″]

***

How To Use The WordPress Internal Linking Tool

Learn about the SEO benefits of internal linking and how to create internal links in posts and pages using the WordPress linking tool …

[adrotate group=”6″]

Using The WordPress Link ToolInternal links are hyperlinks that connect content in different pages on your website or domain.

The WordPress CMS platform comes with great built-in internal linking functions, such as menus, permalinks, text links, tags, categories, and archives pages, search results pages, link widgets, sidebar widgets (e.g. Recent Posts), comments RSS feeds, an internal link tool, read more tags, etc. Additional linking features can also be added to WordPress using a range of plugins. In short, WordPress is perfect for linking content both internally and externally.

In this step-by-step tutorial, we discuss some of the benefits of internal linking, and how to easily add links in your content using WordPress’ own internal hyperlink function.

WordPress Hyperlink Tool

(WordPress Hyperlink Tool)

Internal Content Hyperlinks – Benefits

Internal linking simply means adding hyperlinks in your content to relevant content on your website.

Or, as defined in Wikipedia …

“An internal link is a type of hyperlink on a webpage to another page or resource, such as an image or document, on the same website or domain. Hyperlinks are considered either “external” or “internal” depending on their target or destination. Generally, a link to a page outside the same domain or website is considered external, whereas one that points at another section of the same webpage or to another page of the same website or domain is considered internal.” (source: Wikipedia)

Wikipedia uses extensive content linking extensively

(Wikipedia’s pages contain many internal links)

Using hyperlinks in your posts provides many benefits, not only for you as a website owner but also for your web visitors and search engines. Internal links let users access more content. This also ensures that search engine bots can index your web pages faster. Wikipedia is a great example of sites that rely on internal content linking.

Benefits Of Content Linking #1 – Improved Website Usability And User Experience

Use internal content linking to improve your site navigation and create a better user experience.

(Use internal linking to improve your site navigation and create a better user experience.)

Websites are supposed to provide visitors with the information that they are looking for. Offering users easier access to other sections of your website containing more of the content they want to see not only makes your site easier to navigate, it also creates a better experience for your visitors.

Improving the quality of the user experience means that visitors stay longer on your site and visit more of your web pages. In a well-planned website, this leads to better sales conversions.

Make sure that what you are actually linking together is relevant for your users. For example, it makes sense to add links on your company page to your main products or services page.

Benefits Of Content Linking #2 – Site’s Search Results

Use internal content linking to site's SEO.

(Use internal linking to improve SEO.)

Internal content linking also improves your search rankings. Linking to content on other pages or posts on your website helps search engine robots crawl your site more thoroughly, faster and more easily than if your site includes only standalone pages. This can result in more organic search traffic to your website or blog.

One of the more effective ways of improving SEO is by combining internal linking with keyword relevancy. This can easily be achieved by adding link titles to hyperlinks (called anchor text links).

For example, if your blog provides travel information, you could create a post listing romantic travel ideas and tips and hyperlink the key phrase “romantic cruises” to another section of your website describing various wedding destinations.

Using anchor text links is an effective strategy for both search engines and visitors. You can add anchor text links to content titles, body text, image captions, and so on.

Add anchor text links to content titles, body text, image captions, etc.

(Add keyword-relevant text links to titles, body text, image captions, etc.)

Benefits Of Using Internal Content Linking #3 – Get More Visibility & Exposure For Your Content

Use internal linking to get more visibility & exposure for your content.

(Use internal linking to increase content visibility and exposure.)

In WordPress, as you continue adding content, older posts get pushed down the chronological table. This can cause posts to become less popular and hence less visited.

If you have useful content on older posts or pages that you would like more visitors to read, insert internal links within the content of your more popular posts pointing to your less popular posts to increase their exposure, and/or add links to older posts to help them get found again by visitors and search engines.

Having more of your content being seen by visitors and accessed by search engines means more visibility and exposure for your business online … which can lead to better results!

Using The WordPress Internal Hyperlinking Tool

An internal linking tool was introduced in WordPress v. 3.1 that lets you quickly and easily link content in posts to other posts and pages. This feature was updated in WordPress version 4.5 to include an inline link tool.

Prior to this advanced feature, if you wanted control over your internal linking strategy, you would have to manually look for the page to link to, then copy its URL and manually paste and add a link to it in your content. Now, adding internal linking to WordPress is quite simple.

Here’s how to do it …

Log into your WordPress backend, find and open the post or page you would like to create internal links in.

Next, find and highlight the keywords, phrase, or content you want to transform into a hyperlink.

When you have selected and highlighted the content, click on the chain icon in the WordPress visual editor menu (< this is an internal link!) …

WordPress visual editor - link tool

(WordPress visual content editor menu – content link tool)

Idea

If you find yourself In the ‘Text’ tab of the content editor, click the ‘link’ button to access the linking tool …

The link tool can also be accessed in the 'Text' tab of the content

(The feature can also be accessed in the ‘Text’ tab of the content)

The Inline Linking tool will display below the selection …

Inline Linking Tool

(Inline Linking)

Paste in your link URL or enter a search term to view related posts and pages …

Enter a search term to view related posts and pages

(Type in a search term to bring up related content)

Click the ’Return’ button to create the link …

Inline Linking editor - Apply button

(WordPress Inline Linking editor – Apply button)

Your link has now been created …

Hyperlink added to content

(Hyperlink added to content)

You can access the advanced linking editor by clicking on the gear icon …

WordPress Inline Linking tool - 'Link Options' button

(Inline Linking – ’Link Options’)

This brings up the Insert/edit link window …

Internal linking editor

(Advanced linking feature)

You will see two sections:

Enter the destination URL

Paste in your target destination URL, type in the Link Text to display with the link and choose whether to open the link in a new window/tab …

WordPress Insert/edit link tool

(Insert/edit link tool)

Or link to existing content

This linking feature lets you create internal links to your content. Enter a word or keyword related to the page or post you want to hyperlink in the Search field. WordPress automatically begins looking for pages and posts containing those words …

Type in the search term to find related posts and pages

(Type in the search term to find related content)

Click the page or post you would like to link to, and the URL of the selected item will automatically be added to the URL section …

Select the post or page to link to in your content

(Click on the page or post to link to in your content)

Notice that the feature brings up both posts and pages …

Link to posts or pages

(Link to posts or pages)

But you are not just limited to default pages or posts. You can also link to custom WordPress post types like products, image galleries, etc. …

Link your content to custom WordPress post types in addition to default pages or posts

(Link content in WordPress to custom post types in addition to default pages or posts)

If you want to open your link in a new browser window, tick the Open link in a new window/tab box and click the Add Link button to create your internal link …

Tick the box to open your link in a new window

(Check the box and your link will open in a new window)

Note that the ability to open links in a new window or tab can be used for both internal and external links …

Open external and internal links in a new window - even external links to content about internal links ... woo hoo!

(Open internal and external links in new windows – even external links to content about internal links!)

Congratulations … you have created an internal link to content in other pages or posts …

Internal content link

(Voilá … an internal link!)

WordPress Automatically Detects Broken Links

From WordPress v. 4.6, WordPress now automatically checks when you add hyperlinks to detect broken links. If you add a broken link (e.g. add a space in the URL), WordPress will let you know, allowing you to correct the link before publishing it to your site. …

WordPress automatically detects broken links

(WordPress automatically detects broken links. Source: WordPress 4.6 Features)

Important Info

WordPress can automatically detect if you type in a broken link but it can’t detect whether a correctly entered link leads to a ‘not found’ page error or a destination page that can’t be accessed (e.g. server down or website deleted).

To learn how to detect and repair broken links, see the tutorial below:

Link Boundaries

In version 4.8, WordPress introduced a new feature called Link Boundaries that fixes common issues users experience when trying to update a link or the text around a link and can’t seem to edit it correctly.

These include:

  • Editing text after the link and finding that the new text also ends up linked,
  • Editing text in the link but finding that text ends up outside of the link.

Link boundaries create a ‘shield’ around the link to help streamline the link editing process …

New WordPress Feature - Link Boundaries

(New WordPress Feature – Link Boundaries)

To see this feature in action, watch the short video demo below:

(Link Boundaries)

Internal Link Options

You can format your internal links (e.g. you can italicize your link, make it bold, add color, etc …) using the format buttons in your WordPress WYSIWYG editor menu (< there’s that internal link again! :)) …

Format hyperlinks to make them more visible

(You can format links if you want to make them more noticeable)

Removing Content Links

No tutorial on adding links to WordPress content is complete without showing you how to remove any links that you no longer want, so let’s take care of this topic right now.

To delete a hyperlink from your content, just click anywhere on the link and then click either the little cross icon on the link editor floating bar or the ‘Remove link’ feature on the WordPress content editor menu as shown below

Removing links is easy ... WordPress even gives you different choices!

(Removing both internal and external links in WordPress is easy … just click the button!)

Your hyperlink will be removed …

Plain content ... all links removed!

(Non-clickable content … all links removed!)

Internal Linking Plugins

So far, we have looked at how to create links to content in WordPress manually using the WordPress linking function.

Are there any plugins for WordPress that can do this work?

Yes, there are! As we explain in this article, there are WordPress plugins that can do almost everything you can imagine. And if you can’t find a plugin that does what you want, one can be created for you.

Also, depending on the type of WordPress theme used on your website, you can get additional SEO benefits from internal linking features such as:

  • Breadcrumb links
  • Links to related posts
  • Internal linking using footer and sidebar widgets

In a separate article, we’ll discuss additional content linking strategies in WordPress, look at the benefits and challenges of automating content links in WordPress, and look at various plugins you can check out for creating links automatically on your site:

SEO internal linking

(SEO internal linking. Image source: No Sweat WP Internal Links Lite plugin)

Congratulations! Now you know how to easily link content internally in WordPress.

[adrotate group=”6″]

***

[adrotate group=”3″]