skip to content.
view text-only.

Post Links

Creating links to your other blog posts isn't too hard, but what if the permalinks change (they do) or the post title gets tweaked?

With Post Links, it's really easy to make sure your links stay up to date, and even to generate a wiki-style list of "what links here."

Installation

Install Post Links just like any other plugin: upload or unzip the post_links directory to your wp-content/plugins directory, then go to the Admin menu, the Plugins page, and hit "activate".

Using Post Links

Post Links offers two functions: creating links to a post, and finding what links to a post. The first is very easy; the second is a little more complicated.

To create a link to a post, just put the post's ID in double curly-braces, like this: {{3}}, in the editor. That's it. Post Links will replace this with a link to post 3, with the post 3's title as the link text.

If you want to use something else as the link text, you can do that, too. Just type {{3|an old post}} to create a link to post 3 with "an old post" as the link text.

To see which posts link back to a post, you need to edit your template. I'd say you should only do this on the "single.php" template, or you could get a lot of lists.

This only shows which posts use Post Links to link back, so including the full URL won't show up!

To get a list of posts linking to the current post, include something like this code in your single.php template somewhere inside The Loop.


<?php if(function_exists('links_here')): if(get_links_here()): ?>
<p><strong>Posts Linking Here:</strong></p>
<?php links_here(); endif; endif; ?>

License

This plugin is "show me"-ware. If you decide to use it, please let me know so I can see my handiwork in action! Other than that, it's GPL.

Download Post Links

To get the latest version, you should check Post Links out from SVN:
svn://jamessocol.com/post_links/trunk

You can check out the tags directory for specific versions.

You can also download the plugin in a ZIP file. (Current ZIP version: 1.1.2)

Feedback

Please leave a comment or email me if you use Post Links. If you have ideas or complaints, I'd love to hear them.