name[0] );
$groups[ $first_letter ][] = $cat;
}
if( !empty( $groups ) ) {{
$index_row .=‘
- ‚;
foreach ($groups as $letter => $cats) {
$index_row .= ‚
‚ . apply_filters( ‚the_title‘, $letter ) . ‚
‚;
}
$index_row .=‘
‚;}
$list .= ‚
- ‚;
- ‚ . $name . ‚‚;
} $list .= ‚
foreach( $groups as $letter => $cats ) {
$list .= ‚
‚ . apply_filters( ‚the_title‘, $letter ) . ‚
‚;
$list .= ‚
- ‚;
foreach( $cats as $cat ) {
$url = attribute_escape( get_category_link( $cat->term_id ) );
$name = apply_filters( ‚the_title‘, $cat->name );
$list .= ‚
‚;
} $list .= ‚
‚;
}
}else $list .= ‚
Sorry, but no cats were found
‚;
Leave a reply