WordPress.org

Ready to get started?Download WordPress

Forums

Managing Blogroll and Links in Latest Update - What happened? (20 posts)

  1. unknown
    Member
    Posted 7 years ago #

    OK, I just upgraded to the latest version of WordPress (2.1.1) and now my bloglinks are all screwed up. I see they now have a "Blogroll" management area (instead of a "Links" section under "Manage"), but there's nowhere to go to manage your link categories so that only a certain number of them appear. What this means is you can no longer set it to only display a specific number limit for each category and have it set for random, alphabetical, etc. Am I just not seeing where this is managed now or is it completely gone? I've looked everywhere... Why did they get rid of this? My blog is now a mile long because it is displaying each one of my links instead of what I had it set at before: a random list of 30 or 40 from each category.

    HELP!! Please bring that feature back!

    Thanks,
    kopper
    GaragePunk.com

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    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.

  3. unknown
    Member
    Posted 7 years ago #

    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

  4. unknown
    Member
    Posted 7 years ago #

    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?

  5. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    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.

  6. unknown
    Member
    Posted 7 years ago #

    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.

  7. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    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.

  8. Modderbaard
    Member
    Posted 7 years ago #

    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 included 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.)

  9. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    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.

  10. Modderbaard
    Member
    Posted 7 years ago #

    Cool, thanks!
    :)

    Where can the bugfixes be found?

  11. Modderbaard
    Member
    Posted 7 years ago #

    Ah... already found it ;)
    Bugfix located at:
    http://trac.wordpress.org/ticket/3898

    Thanks again!

  12. Modderbaard
    Member
    Posted 7 years ago #

    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!

  13. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    No, include just gives you the links you specifically include, not all the links *and* that link as well.

  14. Modderbaard
    Member
    Posted 7 years ago #

    OK,

    but thanks anyway!

  15. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    Ugh. Well, my fix apparently didn't make it into 2.1.2, so hopefully it'll be in 2.1.3.

  16. Modderbaard
    Member
    Posted 7 years ago #

    No prob.
    Will patch it by hand...

  17. Jordan
    Member
    Posted 7 years ago #

    Seems to me like now we're just screwing with stuff so that we can say that the next version "Has something new!"

    I'm with Kopper. I was using the links panel to manage a set of links, and it was easy and well designed. Now I've just updated to 2.1.2, and this entire part of the template is FUBAR. Now I have to go into the theme coding to set EACH CATEGORY for how many / what type of listing (random, seq no, etc.)?!

    You can say what you want "content vs. presentation methodology," but that means nothing to anyone except coding philosophers. What I care about is making it easy for me, and my clients, to work with WordPress. How does it make any sense to remove functionality that was working just fine?

  18. ChrisH
    Member
    Posted 7 years ago #

    Let me add my voice to those dissenting. I'm going to be spending days getting my template to show my blogroll properly again, and am considering deep-sixing the whole damn thing and just going back to maintaining my lists on Blogrolling. The previous setup wasn't perfect, but it was intuitive and easy to use, and you didn't have to work out PHP code in order to modify each individual segment.

    I think what bothers me most is how condescending and dismissive Otto has consistently been about peoples' concerns about this particular issue. In this thread and others, I get the feeling that he wants us to quit our damn whining and suck it up. That's really the most frustrating thing, to see that kind of obliviousness to people's concerns coming from a representative of a project that's been such a great alternative to the top-down management of the big software projects. Now, we're expected to adapt our needs to the WP way of doing things, rather than vice-versa.

  19. jabecker
    Member
    Posted 7 years ago #

    I took me awhile to straighten this mess out in my template, too.

    Next to categorizing pages, the change I would most like to see is the ability to designate categories as either link categories or post/page categories or both.

    A blogroll is a blogroll, a post is a post, and a link is a link. These things are not all the same and I need to be able to treat them differently. Having to change the template by hand to show or hide particular categories every time a new one is added is just a pain and doesn't fit in with my idea of a good CMS.

  20. crosslink
    Member
    Posted 7 years ago #

    As a new user of WordPress I didn't have anything get broken by the change.

    But trying to modify the links thrown up by the default WordPress installation, I felt like I had been left completely high and dry by the (lack of) cues on the admin pages in 2.1.2.

    I'm all in favor of pure, abstract code. I'm even OK with occasionally breaking things when there's a compellingly better way to do it. But I think such things can usually be done while giving users decent cues too. Somewhere on the admin pages there needs to be terminology like "manage links". Even if it interfaces with completely new code.

Topic Closed

This topic has been closed to new replies.

About this Topic