我有一个看起来像这样的foreach:
foreach ($blogusers as $bloguser) {
$args = array(
'author' => $bloguser->user_id,
'showposts' => 1,
'caller_get_posts' => 1
);
$my_query = new WP_Query($args);
if( $my_query->have_posts() ) {
$user = get_userdata($bloguser->user_id);
userphoto($bloguser->user_id, "
", array('width' => 135, 'height' => 135));#echo "
";}
}
在每个foth div中,想添加一个额外的类.我该怎么做呢?