WordPress How to Link to Another Page
In this article
To link to another page in WordPress, you can use the built-in link button in the block editor (Gutenberg), the classic editor, or the Custom Links widget. The simplest way is to highlight the text you want to link, click the link icon in the toolbar, and either paste the URL or search for the page by name.
Understanding the Two Editors
WordPress currently uses two main content editors. The default is the block editor (also called Gutenberg), introduced in WordPress 5.0. It works with content blocks—paragraphs, headings, images, and so on. The older classic editor is a plugin that some sites still use; it looks like a basic word processor with a toolbar. The linking process is similar but the buttons are in different places. Most modern tutorials and support docs assume you are using the block editor, but the classic editor is still fully supported.
How to Link in the Block Editor
Here are the exact steps for the block editor (the default experience):
- Open the page or post where you want the link to appear.
- Select the text you want to turn into a link (or click on a button block if you prefer a clickable button).
- In the small toolbar that appears above the text, click the link icon (it looks like a chain link).
- A small popover will appear. You can either paste a full URL (like
https://example.com/contact) or start typing the title of the page you want to link to. WordPress will search your site and show matching pages and posts. - Click the search result that matches. The URL field will fill in automatically.
- Press Enter or click the arrow to apply the link.
You can also link to an existing page without typing a URL by using the search feature. This is the most reliable method because it avoids typos and always uses the correct permalink structure.
How to Link in the Classic Editor
If you’re using the classic editor plugin, the steps are nearly the same but with a different visual layout:
- Highlight the text you want to link.
- Click the link button in the toolbar (the same chain icon, usually in the second row).
- A small dialog opens. Paste a URL or click the gear icon to search for a page on your site.
- Click “Add Link” to apply it.
The classic editor also has a “Link to existing content” option that lets you search by title. This is handy if you don’t remember the exact URL.
Linking to a Page in a Menu
Sometimes you want a link in your navigation menu, not just in the body of a page. To do that:
- Go to Appearance → Menus (or Appearance → Customize → Menus in some themes).
- On the left side, you’ll see a list of “Pages.” Check the page you want to add, then click “Add to Menu.”
- Drag the item to the desired position and click “Save Menu.”
Alternatively, if you’re using a block-based theme (like Twenty Twenty-Four), you can edit the menu via Appearance → Editor → Navigation. The process is similar: add a page link block and select the page.
How to Choose Between Internal and External Links
An internal link points to another page on your own site. An external link points to a different website. WordPress treats them the same when you create them, but there are a few considerations:
- Use internal links to help visitors navigate and to spread “link equity” across your site for SEO.
- Use external links to cite sources or provide additional resources.
- For external links, consider setting them to open in a new tab. In the block editor, you can do this by clicking the link, then the pencil icon, and checking “Open in new tab.”
There is no limit to how many links you can add, but using too many in a single paragraph can look spammy. A good rule of thumb is to link only when it genuinely helps the reader.
Common Problems and Fixes
Linking is usually straightforward, but a few issues come up often:
- Link not working: Check that you haven’t accidentally added a space or a missing slash. Also, make sure the target page is published, not in draft mode.
- Link opens in same tab when you wanted a new tab: In the block editor, click the link, then the pencil icon, and check the “Open in new tab” box.
- Search doesn’t find the page: This happens if the page is not published or if you’re searching for a term that isn’t in the title. Try searching for a different keyword or paste the full URL.
- Link appears but doesn’t go anywhere: This is often caused by a plugin conflict or a custom theme that strips links. Try switching to a default theme temporarily to test.
If you’re using a page builder like Elementor or WPBakery, the linking process is different—you usually click the element (like a button) and find a “Link” field in the settings panel. The same principles apply: paste a URL or search for a page.
Comparing Linking Methods
There are several ways to link to another page, and each has its own use case:
- Text link in content: Best for contextual references within an article.
- Button link: Useful for calls-to-action, like “Contact Us” or “Buy Now.” You can create a button block in the block editor and set its link.
- Navigation menu link: For links that appear in the header or footer on every page.
- Widget link: For links in sidebars or footer widget areas.
- HTML anchor link: If you want to link to a specific section of a page, you can add an anchor and link to it. This requires a bit of HTML knowledge.
Each method is valid; the right one depends on where you want the link to appear and how prominent it should be.
Frequently Asked Questions
How do I link to a page that isn’t published yet?
You can’t link to a draft page because it has no public URL. Publish the page first, then create the link. If you’re building a site before launch, you can use a preview URL, but that will change once the page is published, so it’s better to wait.
Can I link to a specific section of a page?
Yes. In the block editor, you can add an anchor to a heading block (under Advanced settings). Then create a link like https://yoursite.com/page/#section-name. This is called an anchor link. It works only if the target page has that anchor defined.
Why does my link show a 404 error?
A 404 error means the URL doesn’t exist. Double-check the URL for typos, or search for the page in the WordPress admin to confirm it’s published. If the page was moved or deleted, you’ll need to update the link.
How do I make a link open in a new tab in WordPress?
In the block editor, click the link, then click the pencil icon. You’ll see a checkbox labeled “Open in new tab.” Check it and click the arrow to save. In the classic editor, there’s a similar checkbox in the link dialog.
What’s the difference between a link and a button in WordPress?
A link is clickable text or an image. A button is a styled element that looks like a button. In the block editor, you can create a button block and set its link. Functionally they both navigate to a URL, but buttons are more visually prominent and are often used for primary actions.
Can I link to a page from an image?
Yes. Click on the image block, then click the link icon in the toolbar. You can paste a URL or search for a page. The image will become clickable.