I have about 100 sub directories under category 3 and I would like display random 12 sub directories every time people refresh the page.
this is what I have so far but it's not returning anything
My first help would be: how to retrieve all the sub categories id and store them into an array? and once that stored into an array I can then do a random function to route that array.
$args=array( 'child_of' => '3', 'number' =>'12' ); $categories=get_categories($args); foreach ($categories as $cat) : ?>