I’ve searched through the Wiki and through the support forum on phrases like “link between posts”, “link another post”, “link to post”, etc., and I’ve tried using the_permalink(ID) within an actual WordPress posting, but still I can’t figure out something…
Specifically, I would like to link from one WordPress posting (call it ‘Linker’) to another WordPress posting (call it ‘Linkee’), and I want that link to be ‘robust’ — meaning that it doesn’t break if, for example, I change the name of the category containing Linkee, or I change my permalink structure. This seems like a really basic feature of any system for managing content, but I’m afraid I’m stumped on the question of how to actually do it!
Obviously, just linking to an ordinary URL like http://mydomain.com/archives/examples/linkee-story/ won’t work at all, because if I change the permalink structure so that Linkee sits at mydomain.com/archives/examples/2004/linkee-story, then the link will break. Or if I change ‘examples’ into ‘spiffy-examples’, it will also break.
Also, including the_permalink(ID) within a posting, hoping to get WordPress just to generate an appropriate ‘soft’ URL on-the-fly for a given article ID, unfortunately leads only to confusion and disorientation on the part of WP, which does un-pretty things with the rest of the post.
Could anyone point me in the right direction for creating robust links between postings, that won’t just break the moment I change a category name or otherwise fiddle with my permalink structure?
- The topic ‘Soft and robust vs. brittle links between posts’ is closed to new replies.