BLOG

Organizing your WordPress Blogroll Links Easily

Most of the WordPress themes give you a default WordPress Blogroll code. However, when the release of WordPress 3.5 came about, it was no longer necessary to use the blogroll. You still can, but it’s simply not as effective as using menus in WordPress.
 
However, if you decide to use the blogroll, the default code looks like this:
 

 <?php wp_list_bookmarks():?>

 
This default code will take all the links and put them in alphabetical order and categorize them. It will start by organizing the categories you put the links into. However, if you want to just show the links for a specific category you will need to change the code to the following:
 

 <?php wp_list_bookmarks(‘title_li=&category=2’); ?>

 
Change the number “2” in the code to the actual category ID you want to display. This code can now be adjusted by parameter by adding parameters or using the parameter called “Orderby”, which will give you these options:
 

  • ‘url’
  • ‘rating’
  • ‘updated’
  • ‘owner’
  • ‘id’
  • ‘name’
  • ‘target’
  • ‘rel’
  • ‘notes’
  • ‘length’
  • ‘description’
  • ‘rss’
  • ‘rand’

 
After making this change, your code will look like this:
 

 <?php wp_list_bookmarks(‘title_li=&category=2&orderby=id’); ?>

 
This code tells WordPress to pull the links from category 2 and arrange them in a list format. You can make changes to this, as the default will be ascending order, but you can make it descending order by changing the code to:
 

 <?php wp_list_bookmarks(‘title_li=&category=2&orderby=id&order=DESC’); ?>

 

WordPress Blogroll-Using Menus in WordPress Instead of the Blogroll

 
Instead of using the Blogroll, which is only found in older versions of WordPress now, you can use the menus option under “Appearance.” This option is much cleaner and easier to use than setting up your blogroll.
 
Custom Menus
 
Within Menus, you may have different settings depending on your theme. Some themes have built-in areas for menus to go. However, if you don’t have this as a part of your theme, you will be able to create a main menu and use the “custom menu widget” to add other menus to the sidebar and other areas with your theme.
 
WordPress Blogroll
 
Setting up your menus is very easy. Just choose a page, post, category, link or custom post type from the section on the left and click the “Add to Menu” button.
 
Add To Menu
 
Once you have added items to your menu, you can drag and drop to reorder them or to make one a parent or another a child. You can also change the Navigational Label, Title Attribute and a few other options with the drop down box for each item.
 
Drop Down For Menus
 
After you have set up your menu just the way you want, make sure to click on the “Save Menu” button to save all your changes.
 
If you don’t have WordPress 3.5 or older, you will do far better using the menus option than the blogroll or link manager. This is a much easier way to order your links the way you prefer in WordPress.

Leave a Reply

Your email address will not be published. Required fields are marked *

  • business
  • blogger
  • lifehack
Unlimited Disk Space
Unlimited Bandwidth
Free Domain Name