Support » Fixing WordPress » How do i Remove the Category Name Heading from the Blogroll?

  • Hi

    I just upgraded to WP 2.1… My blogroll is a set of links under the link-category “Friends”. Now, when I display the blogroll using wp_list_bookmarks, I’d like to remove the category heading “Friends” above the blogroll links.

    I’ve tried using the title_li parameter, but that doesn’t seem to do anything as specified in the codex.

    This is the line in PHP:

    <?php wp_list_bookmarks('title_li=&category=21&before=<li>&after=</li>&between=<br />&show_images=1&show_description=1&orderby=rating'); ?>

Viewing 4 replies - 1 through 4 (of 4 total)
  • Try replacing that with:

    <?php wp_list_bookmarks('title_li=0&category=21&show_images=1&show_description=1&orderby=rating'); ?>

    Thread Starter Debajit

    (@debajit)

    I tried replacing it as you mentioned above, but that does not seem to help in any way — the link category still shows up.

    wp_list_bookmarks('title_before=<!--&title_after=-->&category=21&before=<li>&after=</li>&between=<br />&show_images=1&show_description=1&orderby=rating'); ?>

    Cheesy… but works.

    Thread Starter Debajit

    (@debajit)

    HandySolo, I think that is more of a hack 😉

    I found the solution, finally, looking at the sources: wp_get_links.

    Turns out, its been heavily updated in 2.1, and is not documented in the codex yet.

    Here’s what I replaced the wp_list_bookmarks line with:

    <?php wp_get_links('category=21&before=<li><strong>&between=</strong><br />&after=</li>&orderby=rating'); ?>

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How do i Remove the Category Name Heading from the Blogroll?’ is closed to new replies.