Am I just not seeing where this is managed now or is it completely gone?
It’s completely gone as far as the Dashboard goes.
I’ve looked everywhere… Why did they get rid of this?
Because it didn’t make any sense to have it there, in the long run. Most people didn’t use it correctly, and a surprising lot of themes had custom PHP code to display links in the way they wanted to display them. In the long run, it’s better to break what’s existing and do it in a more sane way than to try to maintain backwards compatibility.
So, the Link Categories and the normal Post Categories have been merged. All of them can now be found under Manage->Categories.
New functions exist to display the links (now called “bookmarks”). You should switch your theme to use the wp_list_bookmarks function. If you want to display specific categories in specific ways, then that function has methods by which you can do so.
New functions exist to display the links (now called “bookmarks”). You should switch your theme to use the wp_list_bookmarks function.
Can you be more specific as to how you implement this function? I’m totally lost…
Thanks,
kopper
GaragePunk.com
OK, I’ve been monkeying around with this and have a specific question.
I added this to my sidebar, replacing the links stuff:
<?php wp_list_bookmarks(‘orderby’ => ‘rand’, ‘order’ => ‘ASC’, ‘limit’ => 50); ?>
Now I’m getting an error instead of my links categories:
Parse error: syntax error, unexpected T_DOUBLE_ARROW in
The “double arrows” are part of the code… what am I doing wrong?
Implement the function to do what? I don’t get what you’re asking here. You need to be specific to get answers.
Everything you need to know about this function is here: http://codex.wordpress.org/Template_Tags/wp_list_bookmarks
All you have to do is to edit your theme and replace your old code to display links with new code to display links the way you want to display them.
Edit: That’s not the right way to call the function. Try this instead:
<?php wp_list_bookmarks('orderby=rand&order=ASC&limit=50'); ?>
Look at the examples on the page I gave above.
Thanks, that worked. One thing I don’t like about this function is it only applies a limit to the number of links that show up for ALL categories… not different limit numbers for different categories. So, for example, if I wanted to limit the number of links to show up under “Record labels” to 10, but wanted the limit for “Bands” to be 50, I couldn’t do it. This was all possible and easily managed before… And I’m sorry to have to disagree with you, but why this was removed from the back end does NOT make perfect sense. It made sense when people like myself DID use it properly. It was working great, as a matter of fact.
One thing I don’t like about this function is it only applies a limit to the number of links that show up for ALL categories… not different limit numbers for different categories. So, for example, if I wanted to limit the number of links to show up under “Record labels” to 10, but wanted the limit for “Bands” to be 50, I couldn’t do it.
Sure you could. Just call it twice, once for each category.
<?php
wp_list_bookmarks('category=1&orderby=rand&order=ASC&limit=50');
wp_list_bookmarks('category=2&orderby=rand&order=ASC&limit=10');
?>
And I’m sorry to have to disagree with you, but why this was removed from the back end does NOT make perfect sense. It made sense when people like myself DID use it properly. It was working great, as a matter of fact.
Disagree all you like, but it’s the simple truth. The old implementation heavily violated the content vs. presentation methodology that WordPress is trying to use. This change puts control of the presentation back into the theme. Okay, so you can’t easily adjust limits and sort order and stuff, but the theme, if properly designed, could let you do that. Themes can throw up screens to let you control whatever you like. If you used sidebar widgets, those widgets could have these configuration options. Which is sorta the whole point: put the presentation into the things doing the presenting.
Hi,
In my sidebar I use the following to display the Blogroll:
wp_list_bookmarks('orderby=rand&limit=7&include=8');
Now: orderby
works fine, limit
works fine, but the link with id 8 is not always include
d as espected.
Is this a bug, Am I doing something stupid here or is include
not implemented in the new wp_list_bookmarks()
?
The web site is located at http://www.yukka.eu/
( Link #8 is the one called Yukka in het nederlands.)
The latest version seems to have a bug in it. Include is not implemented properly. It’s an easy fix, I’ll submit a patch.
Cool, thanks!
🙂
Where can the bugfixes be found?
Ah… already found it 😉
Bugfix located at:
http://trac.wordpress.org/ticket/3898
Thanks again!
The bug has not been completely resolved…
wp_list_bookmarks('orderby=rand&limit=7&include=8');
now gives back the include with id #8, but it seems to break the other two parameters.
In the above I would expect getting 6 random links that includes link id#8. 7 links in total.
I get one, just id#8.
Thanks in advance!
No, include just gives you the links you specifically include, not all the links *and* that link as well.
Ugh. Well, my fix apparently didn’t make it into 2.1.2, so hopefully it’ll be in 2.1.3.
No prob.
Will patch it by hand…