WordPress: How to Create a link to a section in your Post

When you are writing in your WordPress┬« blog, sometimes you want to link to a section in the same post or on the same page. A good example of this is when you create a Frequently Asked Questions (FAQs) page. So let’s use that as our example.

Step 1 – Write the Questions [the content that you want to LINK]

  1. How do you create a link to a section in the same post or page in your blog?
  2. How do you create a link to a page within your own blog?
  3. How do you create a link to a page in someone else’s blog?

Step 2Write the answers [the sections that you want to LINK TO]
I start the answer section by listing my questions in order and then adding the answers in between each question. I bold the question so that it is quicker to find (in case someone is scrolling instead of being taken there because they clicked on a link)

1. How do you create a link to a section in the same post or page in your blog?
Here’s the instructions for creating a link to a section on the same page or in the same post. And these instructions go on for a paragraph or two and so on and so on.

Step 3 – Now link Question 1 in Step 1 to the Answer in Step 2.

  1. Chain Link

    Chain Link Icon

    Select (highlight) Question 1 in Step 1 (How do you create a link to a section in the same post or page in your blog?) AND click on the Chain LINK icon while the question is highlighted.

  2. WordPress Insert Link

  3. The LINK dialogue box displays on top of the screen.
  4. In the Link URL, paste the address to the Page or Post, then type a slash (/), then enter pound sign (#) and a link name. No spaces in the link. No numbers. No underscores. Only small letters and dashes (hyphens). Here, I added /#link-same-page to the full page address which is (http://www.adventuresonline.com/1331/wordpress-how-to-create-a-link-to-a-section-in-your-post)
  5. Choose “Open link in the SAME window”
  6. Give the link a keyword-rich title.
  7. Set the class (or not – depends on the style you’ve set up)
  8. Click INSERT.
  9. Your questions should now look like this:
    1. How do you create a link to a section in the same post or page in your blog?
    2. How do you create a link to a page within your own blog?
    3. How do you create a link to a page in someone else’s blog?

Your link will not work because there is no section labeled “link-same-page”. We’ll do that next.

SAVE YOUR POST or PAGE as a DRAFT

Step 4 – Add an “anchor” to the section that you want to link to

  1. Visual Mode HTML Mode

    Visual Mode HTML Mode

    Open the post or page

  2. Click the HTML mode Tab
  3. Scroll down to the ANSWER section
  4. Place the cursor to the LEFT of the Answer – in this case, to the left of the number “1” in 1. How do you create a link to …..
  5. Type in:
    Link Anchor
  6. PUBLISH or Update the post or page
  7. Preview* or View the post or page
  8. Click the link on Question 1. If it does not go to Answer for Question 1, rinse and repeat… try these steps again.*

NOTE: In Preview, the link might not work because WordPress adds code at the end of the page name in the browser’s address bar. In that case, click in the address bar, and delete the extra info until you see just the blog address and the page name.┬á At the end of the page name add a slash (/), then a pound sign (#), then the name of your link “link-same-page”, then click the carriage return.

NOTE2: Also note, that this post links ABOVE where the link is and not below. As long as you add your anchor ( link-same-text) and use the correct formatting, you can link above or below your link.

Comments are closed.