ID);
// comma-separate posts
$separator = '';
// create output variable
$output = '';
// if there are categories for the post
if($categories){
echo '
';
echo '
' . __('Published in', 'author') . '';
foreach($categories as $category) {
// output category name linked to the archive
$output .= '
name ) ) . '">'.$category->cat_name.''.$separator;
}
echo trim($output, $separator);
echo "
";
}