[ create a new paste ] login | about

Link: http://codepad.org/lLexVm4w    [ raw code | output | fork ]

PHP, pasted on Dec 7:
1
2
3
4
5
6
7
8
9
<?php
$cats ='';
$categories = get_categories( ); 
$rand_keys = array_rand($categories, 12);
foreach ($rand_keys as $key) {
$cats .= $categories[$key]->term_id .',';
}
wp_list_categories('title_li=&hierarchical=0&hide_empty=0&show_count=1&include='.$cats);
?>


Output:
1
2

Fatal error: Call to undefined function get_categories() on line 3


Create a new paste based on this one


Comments: