That works great, but now I find another issue. I'd like to have those lists of bookmarks of single categories on pages other than category pages, specifically archive and single post pages.
What I'm doing is feeding different sidebars to home, category, archive, single, search and search result pages with if and elseif conditionals in the sidebar. Those conditionals get me different text and the bookmark lists for each category on that category page.
But in order to get a bookmark list on a single page from the archives, I need to be able to pull the category number from a single page in order to display a list of links to charities for that category, which is one of the fifty states.
I looked into using custom fields and took a stab modifying the php above, but no luck.
Also, sometimes a single page has a category URL; don't know if that is a further complication or indicative of a solution.
Some pointers would be appreciated... Thanks