@cbaisden: nice site, and thanks for the technique. However, I wanted to make get_links_list()
work since it would be self-maintaining.
@oriecat: I get what I want by doing this in index.php:
<li><?php get_links_list('order'); ?></li>
and this in style.css:
#sidebar li {
list-style-type: none;
}
Unfortunately, the generated code isn’t valid XHTMLbecause those <li>
tags ought to be wrapped in <ul>
or <ol>
tags.
Yet, when I try to do the right thing (<ul><?php get_links_list('order'); ?></ul
), the generated code doesn’t validate either, and combined with the Connection theme’s styles, causes the categorized links to nest in a peculiar way:
<ul><li id="linkcat-1"><h2>Links</h2>
<ul>
<li><a href='https://ask.metafilter.com/'>Ask Metafilter</a></li>
<li><a href='https://henry.coopblue.com/' rel='met sibling'>Henry Nguyen</a></li>
</ul>
</li>
<li id="linkcat-3"><h2>Listening</h2>
<ul>
<li><a href='https://www.kexp.org/'>KEXP 90.3 FM</a></li>
<li><a href='https://www.publicradiofan.com/'>Public Radio Fan</a></li>
<li><a href='https://www.tuner2.com/'>Tuner2</a></li>
</ul>
</li>
</ul>
So you see, I’m so close, and I’m going crazy!
Any help is much appreciated!