adding just one link category to sidebar
-
I have just upgraded from the legacy 2.0.11 to the latest version of WP. After a minor skirmish with some plugins, I have now got the stupid thing to show the posts.
However, the sidebar is still messed up. Previously, I was showing just one category of links on one part of the sidebar. The category WAS #14 in the old version. I was using the following coding.
<?php wp_get_links(14); ?>Sadly, the new version of wordpress has decided that I want to show ALL my links there. I did a little investigating of category ids (thanks to this forum, I discovered that one can hover over the link category to see the URL and discover the id number) and now it seems that the category that USED to be #14 has been changed to #52. (Rrrrrrr) Unfortunately, changing the coding to the following still displays ALL the links from all categories:
<?php wp_get_links(52); ?>Could someone point me in the direction of how this coding is supposed to look now? (Please feel free to spoonfeed by simply showing the coding)
Thank you.
-EMorris, etherwork.net/blog (please refrain from turning this address into a link – I’m trying to keep the spammers at bay)
-
Excuse me for replying to myself.
Further scouring these forums and google, I found the answer here
http://wordpress.org/support/topic/115423?replies=6in 2.1 the post categories and link categories are merged in one single categories table, so they get renumbered…
Wow. I would never have guessed this!
It turns out that this is the coding I should be using now in order to show only the links in the category now numbered 52. I thought I’d post the answer here too just in case there are others who have waited as long as I to upgrade from the legacy version.
<?php wp_list_bookmarks('category=52'); ?>
The topic ‘adding just one link category to sidebar’ is closed to new replies.