SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: Wordpress 2.1.3

  1. #1
    runat="server" Golgotha's Avatar
    Join Date
    Nov 2001
    Location
    Colorado
    Posts
    2,085
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Wordpress 2.1.3

    I just upgraded to Wordpress 2.1.3 and the Blogroll function is different now in it. It uses the function wp_list_bookmarks().

    Two Questions:
    1. How to you get the links to display random again?
    2. How can I get the h2 that says Blogroll out of there?

    I tried this:
    <?php wp_list_bookmarks('show_description=0&title_after=&title_before=&orderby=rand'); ?>


    Thanks
    Last edited by Golgotha; Apr 8, 2007 at 19:12.

  2. #2
    SitePoint Addict EJ's Avatar
    Join Date
    Sep 2005
    Location
    Hills
    Posts
    237
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think they removed the random feature when they upgraded to 2.1.-, as I noticed it dissappeared after I upgraded to 2.1. I also noticed this update the other day in my Dashboard, but I haven't upgraded yet.

    I really hated how they removed the features for blogroll, like display a certain amount at a time, and randomize them.
    “There's a way to do it better - find it.”
    — Thomas Edison

  3. #3
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,260
    Mentioned
    196 Post(s)
    Tagged
    2 Thread(s)

    sidebar

    The widgets.php file's widget_links function shows this
    PHP Code:
    if ( $wp_db_version 3582 ) {
            
    // This ONLY works with li/h2 sidebars.
            
    get_links_list();
        } else {
            
    wp_list_bookmarks(array('title_before'=>$before_title'title_after'=>$after_title));
        } 
    Notice that wp_list_bookmarks takes an array. In the bookmark-template.php file the wp_list_bookmarks function shows
    PHP Code:
        $defaults = array('orderby' => 'name''order' => 'ASC''limit' => -1'category' => '',
            
    'category_name' => '''hide_invisible' => 1'show_updated' => 0'echo' => 1,
            
    'categorize' => 1'title_li' => __('Bookmarks'), 'title_before' => '<h2>''title_after' => '</h2>',
            
    'category_orderby' => 'name''category_order' => 'ASC''class' => 'linkcat',
            
    'category_before' => '<li id="%id" class="%class">''category_after' => '</li>'); 
    So I think if you use an array it should work OK.

  4. #4
    runat="server" Golgotha's Avatar
    Join Date
    Nov 2001
    Location
    Colorado
    Posts
    2,085
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I ended up moding the wp_list_bookmarks() function.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •