Jan 11

Blogroll Page for Wordpress

Viewed : 487
4 comments

Over time, your Wordpress blog accumulates blogroll links that limitting a fixed amount of links to show on your blog becomes your last option. If you want to share more link love to your co-bloggers, why not use a blogroll page instead?

Easier said than done, I tried looking for a widget for this purpose and found the Blogroll page widget but it wasn’t quite showing what I wanted:

Test Blogroll page

Doesn’t look very appealing right?

  1. Using the theme editor, open up your current theme look for your Page Template file

    Theme Editor

  2. Copy paste the contents of the Page Template file to your text editor
  3. Add this to the top of the file:
    <?php
    /*
    Template Name: Links
    */
    ?>
  4. Look for a php tag with “the_content”. It may look like this:
    <?php the_content('<p class="serif">Read the rest of this entry<&raquo;</p>'); ?>

    and replace it with this:

    <?php wp_list_bookmarks(''); ?>

    note that you can use any argument you want. Read up on wp_list_bookmarks via the Wordpress Codex

  5. Save the file to any .php name and upload it to your current theme folder
  6. Go to Write Page on your Wordpress install and if you did everything right, you should find this:

    Page Template

  7. Choose a page title, select the template and add any other content you want. If you’re curious as to how it looks, check out my page here.

There you have it

4 Comments(s)

Thanks for this. I’ve been trying to do this for ages and ages!! So simple :D

638ways’s last blog post..Starting Somewhere

Glad I could be of help ^^

The blogroll page plugin can’t separate the links by categories but your method can..

Thanks for your guide.. You’re the greatest! :D

Prim3’s last blog post..Wa Bo Eng (I am not free!)