PDA

View Full Version : Wordpress sidebar issue


BigVikingAl
2009-03-25, 06:46 PM
I just loaded the latest verison of WP for a new blog. I have created a new link category called friends but I don't know how to get it in my sidebar. I have this code:

<?php get_links(-1, '<li>', '</li>', ' - '); >

which shows all my links together(friends, blogroll etc). I wan't to have them under seperate headings. Old installations of WP have the following code to dispaly link categories:

<?php get_links(2, '<li>', '</li>', '', TRUE, 'name', FALSE,TRUE);>


<?php get_links(3, '<li>', '</li>
', '', TRUE, 'name',

There seems to be no way of assigning category ID numbers for my links as in the older versions of WP. Any ideas?

anasporn
2009-03-25, 06:57 PM
(note: this is not tech help, but humor may keep you from doing a few of these)

* BFH fixes everything! (BFH=Big Fucking Hammer)
*Nothing a pound of C4 and some det caps can't fix.
*Nothing a rooftop and an AK-47 won't fix

I should stop while I'm ahead

BigVikingAl
2009-03-26, 02:48 AM
Will try this again as nobody has answered my previous post. I have two link categories: Links & Blogroll that I want under separate heading in my sidebar. I can't seem to put them under their individual headings as unlike in older version of Wordpress each link category was given a unique ID number so you could call them separatly with PHP.

How can I now do this?

HowlingWulf
2009-03-26, 02:08 PM
If you check wordpress you'll see the get_links() function has been deprecated. So I won't use that function for an answer.
http://codex.wordpress.org/Template_Tags/get_links

The new function that should be used is wp_list_bookmarks.
http://codex.wordpress.org/Template_Tags/wp_list_bookmarks

The default call
<?php wp_list_bookmarks(); ?>
will have Bookmarks divided into Categories with a Category name heading, just like you want.

BigVikingAl
2009-03-26, 02:33 PM
Thanks for the reply Howling Wolf but I actually found a plugin to overcome this problem, it's called:

Reveal ID's for WP Admin


It works|bananna|

Thanks