This is yet another theme site, created by Sadish Bala. Visit his WordPress blog at WordPress Rocks

on November 2nd, 2004Fix for Links !

WordPress provides a way to list your favorite links on the sidebar.
None of my themes that you download from this website has that in-built.

However when you copy the ‘piece of code’ from the WordPress default Installation into the page that is using one of my themes, it really doesnt look good and also makes the page invalid.

here is the fix to the problem. Use the following code in your index.php.


<h2><?php _e('Links'); ?></h2>
<ul><?php get_links('-1', '<li>', '</li>', ' '); ?></ul>

Thats it !

13 Responses to “Fix for Links !”

  1. Patriciaon 04 Nov 2004 at 5:54 am 1

    Thanks! :-) I was in fact wondering how to do that…

  2. trenchon 10 Nov 2004 at 7:16 am 2

    I was wondering how to include trackbacks to the templates. They dont seem to be included.

  3. Patriciaon 11 Nov 2004 at 1:21 am 3

    True! Trackbacks would be nice too. Although when you click to comment, there´s trackback into, just like above, but having the trackback link right next to the comments link would definitely be nice.

  4. Theme Porteron 11 Nov 2004 at 9:45 pm 4

    I believe even the default template from wordpress doesnt differentiate between trackbacks and comments.

    I am looking into the code right now, and hopefully will find some solution to this.

    Thanks.

  5. Damonon 04 Dec 2004 at 11:13 pm 5

    i get errors undefined ” ‘ ” or somthing when i add this.

  6. Damonon 05 Dec 2004 at 12:42 am 6

    I figured it out for any other n00bs needing to know, this works for the georgia template anyways, probably somthing the same for the rest of the themes on this site.

    < ?php _e('Linkage:'); ?>

      t_links_list(); ?>

    and in the link catagory, just remove the name if you dont want it to say Links twice, i only have 1 catagory atm.

  7. ThemePorteron 05 Dec 2004 at 2:12 pm 7

    Damon,

    Please use this tool
    http://centricle.com/tools/html-entities/
    to encode your PHP / HTML, and then paste it on to the comments box.

    Thanks.

  8. Damonon 05 Dec 2004 at 3:09 pm 8

    Ok hope this one works, its nothing special but i had problems getting the one posted to work so I used this .

    <h2><?php _e(’Linkage:’); ?></h2>
    <ul><?php get_links_list(); ?></ul>

  9. Danielon 05 Jan 2005 at 1:54 pm 9

    I was wondering if anyone might know how to get the nice lines between the links like the ones between the different catagories. You can see it on my page: Otherwise everything is awesome and thanks for the templates.

  10. Laenon 15 Jan 2005 at 6:06 am 10

    I like my links to be split up by category in the sidebar, like how “get_links_list()” does it, but _not_ as a bulleted list.

    To that end, I hacked up get_links_list() to get “get_links_sidebar()”, provided in this file: linksidebar.phps. Stick that in your themes directory, “require” it at the top of your index.php, and call it with <?php get_links_sidebar(); ?>.

  11. Doogieon 16 May 2005 at 10:34 am 11

    I still cannot get mine to display various link catagories. I only get the basic links.

  12. Ronald Phillipson 23 Apr 2007 at 1:12 am 12

    Donna Anderson…

    The 3186 Deborah Mitchell blog…

  13. Anna Levineon 30 May 2008 at 5:15 am 13

    aminoformic velocipedal dioptograph radiographical unslipped countervote monoblepsia thirdness
    Guardian Pest Control
    http://jukeboxking.com.au

Trackback URI | Comments RSS

Leave a Reply

Premium WordPress Themes