
Untitled
By: a guest on
May 21st, 2012 | syntax:
None | size: 0.55 KB | hits: 19 | expires: Never
<?php
$categories = get_the_category();
$temp = array();
foreach($categories as $category) {
if ($category->category_parent == 0) continue;
$temp[] = str_replace('-', '', $category->name);
}
$cat_comma_seperated = implode(", ", $temp);
?>
<abbr class="published" title="<?php the_time('c') ?>"><?php printf( __('Posted on %s', 'arras'), get_the_time(get_option('date_format')) ) ?></abbr> | <?php printf( __('%s', 'arras'), $cat_comma_seperated ) ?></abbr> | <a href="<?php comments_link() ?>"><?php comments_number() ?></a>