• Resolved malvado

    (@malvado)


    Hi. I have a problem, and I hope (know) that someone here knows how to fix it. I want to reorder my blogroll (link) catagories, but I have no clue how to do it.

    Can anyone give me a breakdown of how to make it display, say category 1,4,2,5 (in that order) just as regular links, and then display category 3 last, showing images, limited to 10 random ones at a time.

    Thanks in advance if anyone can/will help me.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter malvado

    (@malvado)

    Anyone please?

    Thread Starter malvado

    (@malvado)

    Ok, still need help on this.

    Thread Starter malvado

    (@malvado)

    Anyone?

    Thread Starter malvado

    (@malvado)

    Sooooo no one knows?

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    a) It’s the weekend.
    b) Continually bumping your post won’t get you a response any quicker.
    c) People who know things on this forum and are trying to help people tend to look for topics *without* any replies yet, so continually adding to your post makes it less and less likely that anybody will read it.

    Stop it.

    Thread Starter malvado

    (@malvado)

    So what you’re saying is, you don’t know how to do it either?

    Look man, I’m not trying to start any trouble. I just need some help. I had my site set up the way that I wanted it, and now after the upgrade, it’s so F’ed up that is isn’t funny.

    You said that you had it set up the way you wanted it.

    So does that mean that you had this functionality working before the upgrade? Because if so, the problem is probably due to a change in the way link categories are handled in 2.1. There was a change in the database structure (which I never saw mentioned anywhere, strangely enough), and I had custom blogroll code that broke, too.

    If you would like, email me (through my profile) the portion of the code that was working before and I’ll help you make the modifications.

    I know you’re not trying to start trouble, but Otto’s right. The timing of your repeated posts shows a rather unrealistic expectation of how fast anyone (we’re all volunteers, remember?) could get to your question.

    Thread Starter malvado

    (@malvado)

    Ok, I apologize if I was in too much of a rush. I get impatient sometimes, and I am really sorry about that. Like I said, I wasn’t trying to make any enemies here.

    As for having things set up the way I wanted them…I did, but I didn’t do anything special to the code to do it. I’ll try to explain what I did before that doesn’t work now…but I am really bad at explaining things like this. I’ll simplify this as much as possible…

    Let’s say there were 4 link (blogroll) categories…A, B, C, D. If I didn’t do anything, they would display in alphabetical order. So when I created them in the Admin, I would put three spaces before C, two spaces before A, one space before D, and no spaces before B. That way they would display (from top to bottom) as C, A, D, B. That doesn’t work now, so the categories are in alphabetical order, which puts links at the top that are way less important than the links that are being forced to the bottom categories now. (i.e. “Blogroll” which I don’t care about is at the top, “Sponsors” which I do care about is all the way at the bottom.)

    And the second thing that doesn’t work anymore is…

    My bottom link category was “Cool Links”, and there I displayed 5 – 150 X 150 buttons that rotated. I did that by making the category display an image and then limited it to show only 5 links at a time. Now that doesn’t work, so I have 52 button images down the side of my page.

    Anyway, if anyone can help me get this to function right again, I would greatly appreciate it. Thanks in advance!

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    Sounds like you need to change your code to make about 5 calls to the wp_list_bookmarks function. Each will display one category however you want it to display.

    Read the info on that page and see what you can come up with.

    Thread Starter malvado

    (@malvado)

    Otto, thank you…and that is what the original post is about. I know that I need to use wp_list_bookmarks…I just don’t know how. I need someone to show me what I would have to put to make it do the things that I want it to do. I need a breakdown of what the code would look like to make it show what I want it to show. Thanks in advance (again) to anyone that can help!

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    Have you even attempted it yourself? It’s really not tricky or anything. Everything you need to know is on the codex page I pointed out above.

    You’re not giving me enough information to tell you exactly what you want to do. Example:

    category 1,4,2,5 (in that order) just as regular links

    What is a “regular link”? Do you want them to have a header? Do you want this to be part of a bigger list? Define what you mean here. Specificness is required.

    and then display category 3 last, showing images, limited to 10 random ones at a time.

    This will probably be much the same as the above ones, but you’re going to add orderby=rand&limit=10&show_images=1 to the argument string.

    I’ll give you a starting point though:
    <?php wp_list_bookmarks('category=1'); ?>
    That will show category 1 as a list of links.
    <?php wp_list_bookmarks('category=1&show_images=0'); ?>
    That does the same thing, without showing images.

    See? It’s simple to do. Just *try* it. Anybody capable of actually typing it into their theme files could probably figure it out in under an hour just by experimentation alone.

    Thread Starter malvado

    (@malvado)

    Thanks man! I believe that worked.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘<?php wp_list_bookmarks(); ?>…can anyone help me with this?’ is closed to new replies.