post->ID); $numberoftags = count($posttags)-1; if ($posttags) { foreach($posttags as $tag) { $output .= $tag->name; if($i < $numberoftags) $output .= ','; $i++; } } $output .= '">'; return $output; } } ?>