|
2009-03-25, 05:46 PM | #1 |
They have the Internet on computers, now?
Join Date: Apr 2005
Posts: 148
|
Wordpress sidebar issue
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? |
2009-03-25, 05:57 PM | #2 |
If something's hard to do, then it's not worth doing
Join Date: Oct 2005
Posts: 249
|
(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
__________________
"TGP2 Queen" and yes, still crazy! My TGP2 articles on right hand side |
2009-03-26, 01:48 AM | #3 |
They have the Internet on computers, now?
Join Date: Apr 2005
Posts: 148
|
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? |
2009-03-26, 01:08 PM | #4 |
Me fail English? That's unpossible!
|
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_...list_bookmarks The default call <?php wp_list_bookmarks(); ?> will have Bookmarks divided into Categories with a Category name heading, just like you want. |
2009-03-26, 01:33 PM | #5 |
They have the Internet on computers, now?
Join Date: Apr 2005
Posts: 148
|
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 Thanks |
|
|