Linking between pages is one of the key components of web pages on the Internet, and WordPress ones are no different. Hyperlinks interconnect websites and their web pages and imply a relation or lack thereof, such as when pointing to external websites you don’t control. Either way, website owners need to know the procedure to do things properly. That boosts their SEO (Search Engine Optimization) and helps their visitors navigate the site. Plus, learning how to link pages in WordPress removes the risk of incorrectly linking to shady sites.
The primary method to link pages in WordPress is to add an inline hyperlink. In most cases, you would do that manually. The functionality will turn the link blue and make it clickable. You can also find SEO plugins that will automatically suggest and link phrases on your pages. However, we recommend that beginners hold off on that. With that said, linking WordPress posts or pages works like this based on the editor:
Begin by opening an existing post or a page or creating one. Then, follow these instructions for linking a page in Block Editor:
Note. You can copy an URL, highlight the anchor text, and paste the URL. WordPress will automatically link the anchor text and give you the options mentioned in step 6.
You can insert a link to a page in Classic Editor like this:
Everything you did in method 1 is transformed to HTML behind the scenes by WordPress. Luckily, we put together a comprehensive guide to editing HTML in WordPress. Follow method 1 as it tells you how to switch between Text/Visual Editor and HTML/Code Editor. The HTML for an internal link is rather simple:
If you want the link to open in a new tab, it would look like this:
If the link needs to be nofollowed, it looks this way:
HTML gives you a chance to add a title, i.e., what users see when they hover over a link:
Sometimes you want to add links to pages outside the content text. Widgets such as the sidebar and footer are ideal for that since they let you link pages subtly. Linking a page from a widget in WordPress works this way:
For Classic Editor, you need to disable Widget Blocks in WordPress, then make changes. It is not worth the effort for simple links.
We demonstrated editing menus in WordPress in the past. After going to Appearance → Menus, select these options:
If you need help with external links, check our “adding nofollow links in WordPress navigation” guide.
This option became hugely popular in Block Editor since it doesn’t require WordPress plugin installation. Follow these steps to link WordPress pages via a button: