Support » Everything else WordPress » Trouble linking internal pages

  • I am trying to link my posts and pages internally. I am highlighting what I want to link and adding the url of that post in the link box. It seems to work until I click it, and then it brings up a page that says:

    Not Found

    Sorry, but you are looking for something that isn’t here.

    Can anyone tell me what I am doing wrong? Sorry if it is a really obvious mistake, I have looked through the ‘how to’ section and either it’s gone over my head or I couldn’t find the right bit!


Viewing 3 replies - 1 through 3 (of 3 total)
  • I’m not sure I understand what you are trying to do. WP automatically provides links to your posts by Category and by Date in the sidebar. (If you have the code in place for it to do so.)

    You can also tell it to automatically display links to all your pages as well.

    But what confuses me is that you say you are “adding the url of that post in the link box” (emphasis mine). The Links tab is for your blogroll, for adding external links, not WP pages or posts.

    I obviously didn’t explain very well!!

    What I want to do is highlight some text in my post or page that when clicked on will take the reader through to another post or page.

    For example on one page I have a small paragraph of copy taken from an article I wrote. I want that paragraph to be a live link that will then redirect to the post where the whole article is hosted.

    Is that not possible?

    The best way to do what you want is using template tags.
    You should install and activate the Exec PHP plugin.
    Then open Manage Posts/Pages and discover the ID of the post you want to link to; hovering over post title, you’ll see an URL containing a number after “p=” or “page=”; that is your ID.
    Then insert this chunk as he link

    <a href="<?php echo get_permalink(ID); ?>">link text</a>

    Of course you need to substitute ID with the actual number and link text with your text.
    In order for this to work, make sure the “Execute PHP” option of your post is selected.
    This should work allright.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Trouble linking internal pages’ is closed to new replies.