Sep
23

Hi,

WordPress blogroll has gone through many changes over the past year and a lot of the WordPress themes authors out there did not update their themes with the new code used to call the blogroll.

The old code still works but it does not give you the advantage of the new blogroll capabilities. If you have set up your blogroll with different categories but noticed that all of them display under a single category. It is probably because blog theme is using the original code that did not allow for much configuration. Blogroll code should be:

<?php get_links()’ ?>

OR

<?php get_links_list()’ ?>

If you want a more configurable code, you will want to use something like the following

<?php wp_list_bookmarks(‘categorize=1&before=<li>&title_before=<h2>&title_after=</h2>&category_before=</n>&category_before=</n>&after=</li>&orderby=url’); ?>

This code will display blogroll but you have to separate lists for different blogroll categories. This code display the category title as a Header 2 and use bullet points to display the content.

Thanks,

Shane G.

Popularity: 1%

Related posts:
  1. How To Add Link Categories In WordPress Blog? Hello All, In order to add Blogroll categories in WordPress...
  2. What Is A Blogroll? A blogroll is a common blogging term which refers to...
  3. Code To Display Recent Posts from Specific Categories In Wordpress Blog Hi, In many cases we do require to display the...
  4. How to sort wordpress categories by number of posts? While displaying categories, by default, they are sorted by category...
  5. How to exclude Categories From Your Home Page? How to exclude Categories From Your Home Page? Placing this...

Leave a Reply

You must be logged in to post a comment.