WordPress.org

Support

Support » Themes and Templates » Blogroll List Only One Category — Title

Blogroll List Only One Category — Title

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

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Blogroll List Only One Category — Title’ is closed to new replies.