I'm putting together a site based on a Wordpress template, and was wondering if there's a way to link one post to another without entering the full URL. I'd like to be able to use something that doesn't change if the parent directory or subdomain changes. Any ideas?
+1
A:
Linking Posts, Pages, and Categories
Something like: <a href="index.php?p=123">Post Title</a> should work even if you use permalinks.
Chris Doggett
2009-03-17 16:25:16
+2
A:
Posts
To link to a Post, find the ID of the target post on the Posts administration panel, and insert it in place of the '123' in this link:
<a href="index.php?p=123">Post Title</a>
Categories
To link to a Category, find the ID of the target Category on the Categories administration panel, and insert it in place of the '7' in this link:
<a href="index.php?cat=7">Category Title</a>
Pages
To link to a Page, find the ID of the target Page on the Pages administration panel, and insert it in place of the '42' in this link:
<a href="index.php?page_id=42">Page title</a>
(From Wordpress)
Andrew Flanagan
2009-03-17 16:25:49