WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] wp_list_bookmarks help (8 posts)

  1. zachlee
    Member
    Posted 7 years ago #

    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 (http://codex.wordpress.org/Template_Tags/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?

  2. zachlee
    Member
    Posted 7 years ago #

    I seem to have stumbled upon a partial solution.

    Using:

    <?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...

  3. zachlee
    Member
    Posted 7 years ago #

    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)

  4. zachlee
    Member
    Posted 7 years ago #

    SOLVED

    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

  5. zachlee
    Member
    Posted 7 years ago #

    one correction, add:

    categorize=0

    and the 'category name' will not be displayed.

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

  6. nims
    Member
    Posted 7 years ago #

    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.
  7. Setu
    Member
    Posted 7 years ago #

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

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

  8. KD
    Member
    Posted 7 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.