Hi,
I want to be able to show only 9 out of my 45 tags in my tag cloud. I also what them to randomise each time the page is loaded. What I have working at the moment is 9 tags showing but only the same 9 randomising on page load instead of the complete 45 I have.
Is there a way to do this?
My functions php code thus far:
//////////////////////////////////////////////////////////////////
// THE TAG CLOUD
//////////////////////////////////////////////////////////////////
function custom_tag_cloud_widget() {
$args = array(
‘number’ => 9,
‘order’ => ‘RAND’
);
return $args;
}
add_filter( ‘widget_tag_cloud_args’, ‘custom_tag_cloud_widget’ );