test

function score_tag_cloud(){
$tags = wp_tag_cloud(
array(
'smallest' => 8,
'largest' => 40,
'unit' => 'pt',
'number' => 0,
'format' => 'flat',
'separator' => " ",
'orderby' => 'name',
'order' => 'ASC',
'exclude' => '202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228',
'link' => 'view',
'taxonomy' => 'musicains',
'echo' => true
)
);

foreach($tags as $tag){
preg_match('/href='http://.+?'/', $tag, $matche);
$wtc_href = $matche[0];

preg_match('/style='.+?'/', $tag, $matche);
$wtc_score = round(floatval(preg_replace('/[^0-9.]/', '', $matche[0])));
$wtc_class_score = "tag-score-". $wtc_score;

preg_match('/title='.+?'/', $tag, $matche);
$wtc_title = $matche[0];
$wtc_count = mb_ereg_replace('[^0-9]', '', $wtc_title);
$tag_name = strip_tags($tag);

echo "

  • $tag_name ($wtc_count)
  • ";
    }
    }

    8,
    'largest' => 40,
    'unit' => 'pt',
    'number' => 0,
    'format' => 'flat',
    'separator' => " ",
    'orderby' => 'name',
    'order' => 'ASC',
    'exclude' => '202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228',
    'include' => null,
    'topic_count_text_callback' => default_topic_count_text,
    'link' => 'view',
    'taxonomy' => 'musicains',
    'echo' => true,
    'child_of' => null, // 注を参照
    );
    ?>