Support » Fixing WordPress » wp_list_bookmarks help

  • Resolved zachlee


    I have several categories on my site, each category has several links, which are displayed in multiple sections on my site. In the past (2.0.x) I used:

    <?php wp_get_linksbyname('NAV'); ?>

    With ‘NAV’ being the name of the category with which links I wanted displayed at the location they needed to be.

    I have been all through the documentation page for wp_list_bookmarks ( yet my links/categories are one giant mess.

    I have a custom theme, with custom headings. All I want is to alphabetically display links within a single category.

    At this point I have stared entirely too long at options/comments/tags and posts that all point back to the doc page that does not help. Anyone else having the same trouble? Anyone know a simple solution?

Viewing 7 replies - 1 through 7 (of 7 total)
  • I seem to have stumbled upon a partial solution.


    <?php wp_list_bookmarks('category=4&orderby=name'); ?>

    with ‘4’ being the ‘cat_id’ (found when mousing over the proper category link on blogroll page)

    now all that needs *fixed* is to remove the
    <ul> & <h2> that conveniently showed up…

    another bit I have noticed…

    <?php wp_list_bookmarks('categorize=0&category=6&orderby=name'); ?>
    displays a table with the word bookmarks, while

    <?php wp_list_bookmarks('categorize=1&category=6&orderby=name'); ?>
    displays a table with the ‘name’ of the category

    I want NOTHING added, how can I accomplish this?

    (sorry to post/respond to my own posts, I am actively trying to *fix* my site)


    I added:

    &title_li= &title_before= &title_after=

    to wp_list_bookmarks to make:

    <?php wp_list_bookmarks('category=9&orderby=name&title_li= &title_before= &title_after= '); ?>

    all is back to *normal*

    SO FAR

    one correction, add:


    and the ‘category name’ will not be displayed.

    <?php wp_list_bookmarks('categorize=0&category=3&orderby=name&title_li= &title_before= &title_after= '); ?>

    I am using <?php wp_list_bookmarks(‘categorize=0&title_li=&title_before=&title_after=&before=&after=
    ‘); ?> but I get <li id=”linkuncat” class=”linkcat”>

      before the list starts. How can I avoid that.

    Maybe you can add: &category_before=
    after the paramaters you already have.

    zachlee, thanks for putting the solution, it helped me!

    zachlee, thanks for following up with the solution to your problem. I had the same issue and was able to solve it 🙂

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘wp_list_bookmarks help’ is closed to new replies.