Post Links

Post Links is a Wordpress plugin that enables you to associate any number of links with a particular post.

Dowload the plugin from Wordpress.org

1. Installation instructions

Unzip the file and copy it to wp-content/plugins/. Then activate it in the Wordpress Admin for Plugins. Once activated, the link form will appear on the Write/Edit page.

2. The ‘Links’ box on the Write/Edit page

The plugin makes a box in the admin that looks like this:

Link box on the Write/Edit page

Links are dynamically created and deleted in this box, and they can be moved up and down in the list. The order that they are shown in in the admin is also the order that they are generated in the template.

3. Displaying links in templates

The links can then be displayed inside a template using:

  <?php post_links(); ?>

The default is to create a dl/dt/dd list, which can be styled using css.

3.1 Slightly more advanced use

If you’re not a fan of dl/dt/dd lists you can create an oldschool ul/li list like this:

<?php
  $args = array('format' => 'ul');
  post_links($args);
?>

Now, what if you want to wrap all the links in a div with id=’post-links’ and have a h3 title at the top? Post Links supports that too:

<?php
  $args = array('format' => 'ul', 'div' => 'post-links', 'title' => 'Check out these links');
  post_links($args);
?>

The div will only be created if there are links to display, otherwise it wil display nothing.

4. Languages

It supports translation files, but is has as of yet only been translated to Swedish.

5. License

The More Fields Wordpress plugin is relased under GPL, and the following license can be found in the header of more-fields.php.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see

23 Comments to “Post Links”

  1. Tim Says:

    Tried to install your plugin on 2.3, but I get the following error:
    Plugin file does not exits.

    Any idea what could be the problem?

    Thanks
    Tim

  2. Ricardo Senise Says:

    Sure it’s a great plugin! Thank you!
    My only suggestion by now is putting the “Slightly more advanced use” under the Option menu in WP!
    I made a translation for Brazilian Portuguese, how could I send it?

  3. Marco Says:

    Great plugin. Is there a way to add a “target=_blank” to the plugin? So that links are opening in a new window?

  4. Chris Knowles Says:

    Is there a simple way to switch this plugin on for pages?

    It only seems to work for posts.

    Cheers.

  5. Igor Says:

    Thanks for This Plugin Very much!

  6. Vegan Recipe Blog Says:

    We had this plugin installed on our vegan recipe blog, before we relaunched, i think it’s time to add it again! It’s a great plugin!

  7. Chris Says:

    Very nice, does what I was looking for.

    I was wondering how I would make the same plugin again, so I can have different Link Categories and style them accordingly in the theme.

    Cheers!

  8. Tari Says:

    “Is there a way to add a “target=_blank” to the plugin? So that links are opening in a new window?”

    I was wondering that too :)

  9. Ronche Says:

    Great Plugin! Any chance we’ll get compatibility with 2.5? Just upgraded and this plugin seems to have some issues. Also, I definitely echo the request for being able to set the target on links as well. Thanks!

  10. Henrik Melin Says:

    Yeah, I’m going to make it compatible with WordPress 2.5 when I get the time to do it. Hopefully it won’t be too long… Thanks for your feedback!

  11. WP Plugin Archive » Post Links Says:

    […] Post Links von Henrik Melin kann einem Beitrag eine beliebige Anzahl Links hinzugefügt werden. Die […]

  12. Separatista Says:

    Hello, upgrade this plugin to WP 2.5 would be very appreciated. Thanks for your help…

  13. Henrik Says:

    It would be cool, if the plugin could support the following things:

    - working properly in Wordpress 2.5
    - make an target=”_blank” tag possible
    - adding the field “category”, so there can be different sections of links (e.g. Wiki-links, The Web, Youtube-Videos, etc.)

    Looking forward for new updates :)

    Greetings from a name-Sibling ;)

  14. Buster Says:

    Thank you for putting your efforts out there for us! You’re truly showing what can be done by a motivated free-thinker. Keep up the good work!

  15. Catskill Says:

    I have been using this for the past week. I have been very happy with it. I think the best upgrade for the plugin is a choice of the link opening in a new page.

    It would be even better if this choice was for each link— as some of the links are for my site and some links are for outside links to other sites.

    make an target=”_blank” tag possible as a choice for each individual link.

  16. Wordpress Post Links plugin | just another wordpress fun blog Says:

    […] see http://labs.dagensskiva.com/plugins/post-links/ for more information on how to use this […]

  17. Betsy G Says:

    Hey, your plugin and the instructions above are fantastic. I have related links only on the pages where I actually have related links. Awesome. I have two questions:

    1) I have the title wrapped in an and it looks like all my other s (i.e., white text on a boxy background) except that the point size is bigger. Any clue where it might be getting that point size from?

    2) The description shows as text below the link rather than when I hover. Is that by design? Or is there a way to put the description in a hover box?

    Thanks–I’m so pleased I’ve been able to get it 90% of where I want it so quickly.

  18. Betsy G Says:

    Correction to that last e-mail. I used an html code in the text as an example. I meant to say it was wrapped in an h2 and it looks like my other h2s except for the point size. Thank you.

  19. Betsy G Says:

    I actually fixed the h2 problem by taking the title info out of your conditional code sample above and just handling the h2 outside of it. I am wondering, since so many people are asking about blank, if there is an easy edit to the post_links.php file that would make make the targets always open in a new window? I tried setting post_links_open_in_blank to true at the top of the file, and that didn’t do anything.

    Thanks.

  20. Timo Says:

    Hello,
    I love your plugin. I use WP 2.5 and it works great.
    Is there a way to use a orderd list (1, 2, 3)? When I used ‘ol’ instead of ‘ul’ nothing is shown :-(

  21. Pete Says:

    Hi GR8 plugin and have got working with 2.5.1.

    However there is a small bug in the admin section. The links don’t move up and down when the buttons are clicked.

    Does anyone know how to fix this - its fairly urgent that I get this fixed.

    Also look here for opening links in new window…… I’ve got it working quite nicely.

    http://www.webdesignerwall.com/tutorials/jquery-tutorials-for-designers/

  22. lowR Says:

    Excellent plugin !
    I need also the “blank” function. Any news about it ?

  23. LORENZ Says:

    I have correct the blank fonction !!!

    On the file : post-link.php

    on lines 176 and 180 replace $target with target=\”_blank\”

    ;)

Leave a Reply