<div id="menu">
<ul>
<li id="categories"><?php _e('Categories:'); ?>
<ul>
<?php wp_list_cats(); ?>
<?php get_links_list(); ?>
</ul>
</li>
Just a change, for proper validation
<div id="menu">
<ul>
<li id="categories"><?php _e('Categories:'); ?>
<ul>
<?php wp_list_cats(); ?>
</ul>
<?php get_links_list(); ?>
</li>
Basketball,
I tried your code and it displays properly, but it won’t validate.
Line 77, column 24: document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag
<li id="links">Links
Try this:
<div id="menu">
<ul>
<li><h2><?php _e('Categories'); ?></h2>
<ul>
<?php list_cats(0, '', 'name', 'asc', '', 1, 0, 1, 1, 1, 1, 0,'','','','','') ?>
</ul>
</li>
<li><h2><?php _e('Links'); ?></h2>
<ul>
<?php get_links_list('-1', '<li>', '</li>', '<br />'); ?>
</ul>
</li>
That is, for the most part, my sidebar code. You have to close the menu of course, but I assume you have more to go after Links.
Some one is going to post this Q/A in the soon-to-be official documentation. http://codex.wordpress.org/Main_Page