WordPress.org

Ready to get started?Download WordPress

Forums

Random Blogroll Links for footer/sidebar? (4 posts)

  1. arwennn
    Member
    Posted 5 years ago #

    Is there a plugin that would display a random set of a certain amount of links? The only one I found that was similar to what I was looking for is the Better Blogroll plugin ( http://wordpress.org/extend/plugins/better-blogroll/ ), but there's only instructions for the sidebar widget, and I'm not advanced enough with PHP to figure out a code for it to embed it in my files.

    Here's what I'm trying to do. If you look at my site ( http://www.shiny.nu ), you can see my list of affiliates and dailies I have on the footer. I only have room for 9 links (other than the "view more links" link) down there, and I have more than 9 affiliates. I would like to have a plugin that I can put there to randomize 9 links from my blogroll.

    Any suggestions? :)

  2. realepicurean
    Member
    Posted 5 years ago #

    I'd like to know, too.

  3. MichaelH
    Member
    Posted 5 years ago #

    This should work:

    <?php wp_list_bookmarks('categorize=0&limit=3&orderby=rand'); ?>

    If you want a widget, consider downloading and installing Otto's php code widget.

    Then put that code in the widget.

    Please remember to support our plugin authors by clicking on the Donate button there.

  4. arwennn
    Member
    Posted 5 years ago #

    How would I adjust that so that <li> and </li> appear before and after each random link?

Topic Closed

This topic has been closed to new replies.

About this Topic