• Hi,

    I would like to know how I can easilly link to other posts from my own blog. I currently visit the blog and copy/paste the url at the top of my browser and use that to hyperlink the words in my text. but I realize the links will break should I move my blog to a new domain name, which I plan on doing. So I figured there must be a way to link to the actual post number, or something like that, that WordPress will recognize and decode in to the correct url once the visitor clicks on the hyperlink.

    Maybe it is a function already in WordPress, or perhaps it is a plugin that needs to be installed?

    Yuor help would be appreciated.

    Thank you,

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter martinperreault

    (@martinperreault)

    ANyone?

    Well, you could just link to everything after the “.com” instead, but it’s a little tricky.

    Let’s say you’re writing a post in category A.
    You want to link to something in category B.

    Your link would have to look like this:

    <a href="../B/post-title/">link text</a>

    or like this:

    <a href="../B/147">link title</a>

    It’s all going to depend on what your link structure is.

    You need the “..” there because that tells the browser to go to the root and then find the rest of the URL.

    Note: This will only work if you keep the same permalink structure on the new URL as what you have on this one.

    Thread Starter martinperreault

    (@martinperreault)

    thanks for the reply and suggestion.

    I figured I could do it manually. I am using permalinks, and so far I go to the corresponding post I want to link to and I write it like
    link text.

    But what if I was to edit the permalink at a later date, then the link would be broken. So I was wondering if there is a plugin that we would use so that you can actually link to the core of the post (number of category, number of post) and the plugin would convert said link to the correct actual permalink. I don’t know if I express myself correctly or if this makes sense.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to easilly link to your own blog posts’ is closed to new replies.