Random Blogroll/Link-Category and Limit (7 posts)

  1. thesuzette
    Posted 8 years ago #

    When I was using the older version of WP, it allows us to set the limit of links in (Link Categories), and it also allows us to sort the order (or randomize) it. It is particularly useful if we have a long blogroll.

    However, after I upgraded to 2.1.1 today, this 'Link' tab is now replaced with 'Blogroll', and the tab to 'Link Categories' is now removed.

    How can I do the same thing (randomize and limit to x number of links showing) with the new version? I expect the upgraded version to be more superior, but it is not!

    Please can you help to solve this? My friends are also having the same problem!

  2. The Links and such have all changed fairly heavily. You should switch your theme to use the new wp_list_categories function. In those calls, you can determine how you want them to display and such.

  3. thesuzette
    Posted 8 years ago #

    Otto42, thanks for the advice. But for a dummy like me, dealing with that is really a pain, that's why we need simple tools like in the older version... :( Looking at those thing makes me headache. :P

  4. But for a dummy like me, dealing with that is really a pain, that's why we need simple tools like in the older version...

    The problem is that those "simple tools" in the older version usually did not work. This led a lot of theme authors into building custom code into their themes just to display Links.

    So those tools were moved out of the admin interface and put into functions that the themes could use. Now, the theme's can give you nice configurable options to do that sort of thing, but really it's a presentational thing. The idea is to keep what and how things are presented under the control of the theme, and not in the core code.

    Because these changes are relatively new, themes and other tools to make it simple have not been developed yet. Hey, that's what you get for being an early adopter. In time, those options will be available again, but in a more sensible way. That stuff didn't really belong in the core code.

    Sorry. But if you don't like it this way, then you should have stuck with the 2.0 series (which is up to 2.0.9 as of this writing).

  5. ipeat
    Posted 8 years ago #

    Otto42, Thanks for the info but I didn't see any option for randomizing links. Do you know of any?

    Nevermind get_links function still works

  6. Jeremy Clark
    Posted 8 years ago #

    I believe this is what your looking for. wp_list_bookmarks

  7. Yeah, I can't believe I made that link wrong a month ago.

    wp_list_bookmarks() is the correct function to use to display links/bookmarks/blogroll. It's the one getting all the fixes and work done to it in newer WP versions. get_links and such will eventually be deprecated, I think.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.