WordPress.org

Ready to get started?Download WordPress

Forums

Adding Category headings to Link List (4 posts)

  1. biscuitWeasel
    Member
    Posted 6 years ago #

    I'm using WordPress 2.2.1

    I saw a post on this but the answer was unclear.

    I want to loop through the links list (blogroll) and have the categories display for each set of links. I have the links working as I want, but being unfamiliar with PHP and WordPress I'm not sure how to proceed.

    I found the <?php wp_get_links(category); ?> attribute that I think will do what I want, but if someone could please post how to put this all together, that would be so very helpful.

    Thank you!

    Category
    Link
    Link

    Category
    Link
    Link

    etc....

    My code so far -- this works fine but obviously no categories...

    <?php get_links (with attributes)...>

  2. biscuitWeasel
    Member
    Posted 6 years ago #

    I think this page http://codex.wordpress.org/Template_Tags/wp_list_bookmarks answers my question.

  3. biscuitWeasel
    Member
    Posted 6 years ago #

    This is the code I used from the above link to solve my problem.

    <?php wp_list_bookmarks(‘title_before=<h2>&title_after=</h2>&category_before=&category_after=’);
    ?>

  4. llworldtour
    Member
    Posted 5 years ago #

    Thanks Biscuit! Your posts helped me do the same thing!
    Thanks!
    LL

Topic Closed

This topic has been closed to new replies.

About this Topic