/ Published in: PHP
                    
                                        
Sometimes you just want a random link to display and outside of the default format, this works perfectly and removes all default html (list items / headings).
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
//swap out the category (33) for your own category
$links = wp_list_bookmarks('title_li=&categorize=0&sort_column=menu_order&show_name=1&echo=0&category=33&orderby=rand&limit=1');
//create array from string returned by wp_list_bookmarks
//print without a link, if you want you could remove strip_tags() to bring the href back.
Comments
 Subscribe to comments
                    Subscribe to comments
                
                