wp_tag_cloud() 接受separator 参数,因此您可以按如下方式修改调用:
wp_tag_cloud( array(
\'separator\' => ", ", // Default value: "\\n"
\'unit\' => \'px\', // font sizing choice (pt, em, px, etc)
\'include\' => $tag_ids, // ID\'s of tags to include, displays none except these
) );