Five days, five new features: Using blogroll lists in different ways on day 5

It’s the last day of this series and since it’s Friday, I’m going to add a relatively simple feature to Red Pill.  After all, the weekend is looming large.

I thought that I would add a blogroll to Red Pill, but I decided to use the blogroll feature of WordPress in a non-traditional way.  Most bloggers use the blogroll to showcase other blogs they read or to give some link love to their blogger friends. While there’s certainly nothing wrong with that, the addition of being able to group links into different blogroll categories give the blogroll feature more potential than it previously had. 

So on Red Pill, I’m going to create 3 link categories (WordPress is actually trying to get away from the term ‘Blogroll’).  A link category for upcoming events we’ll be at.  Another for speaking engagements.  And a third for affiliations and causes we participate in.  The process of adding a link is pretty simple within the dashboard.  See the Codex page and/or this screencast for more info on that.  Once you’ve added some links, you can use the wp_list_bookmarks template tag to generate a list of links in your theme.

<h2>Affiliations and Causes</h2>
<ul>
<?php wp_list_bookmarks(‘title_li=&categorize=0&category=75&show_images=0&show_description=0&orderby=name’); ?>

</ul>

The code above adds some arguments to not display the category title; show only link category 75; not show a description; and order the resulting list by name of the link.


This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

Choose the Blue Pill

Upcoming Events