Blogroll List Only One Category -- Title (3 posts)

  1. lisaps
    Posted 9 years ago #

    I'm trying to list blogroll links of only one category, and I can do that, but I also want to list the name of that category. I've had to manually add that like so:

    <h2>Cool Sites</h2>
    <?php get_links(2, '<li>', '</li>', '', FALSE, 'name', FALSE); ?>

    Is there a way that I can put instructions in the () of get_links to list category #2's name? I did something similar with wp_list_pages:

    <?php wp_list_pages('include=10,18&sort_column=menu_order&title_li=<h2>' . __('About Me') . '</h2>' ); ?>

    Should I be using get_links_list instead? The details on the template tags page for get_links_list weren't detailed enough for me to know.

  2. MichaelH
    Posted 9 years ago #

    As of version 2.1 you might consider using the template tag, wp_list_bookmarks.

  3. You should be using wp_list_bookmarks() instead.



Topic Closed

This topic has been closed to new replies.

About this Topic