Hier finden Sie eine Übersicht unserer Themen. Klicken Sie auf das gewünschte Thema, um es zu öffnen.
[insert_php]
/*
Template Name: Tags
*/
/* Process
================================================= */
$list = “;
$tags = get_terms( ‚post_tag‘ );
$groups = array();
if( $tags && is_array( $tags ) ) {
foreach( $tags as $tag ) {
$first_letter = strtoupper( $tag->name[0] );
$groups[ $first_letter ][] = $tag;
}
if( !empty( $groups ) ) {
foreach( $groups as $letter => $tags ) {
$list .= „\n\t“ . ‚
‚ . apply_filters( ‚the_title‘, $letter ) . ‚
‚;
$list .= „\n\t“ . ‚
- ‚;
- ‚ . $name . ‚
foreach( $tags as $tag ) {
$url = attribute_escape( get_tag_link( $tag->term_id ) );
$count = intval( $tag->count );
$name = apply_filters( ‚the_title‘, $tag->name );
$list .= „\n\t\t“ . ‚
‚;
}
$list .= „\n\t“ . ‚
‚;
}
}
}else $list .= „\n\t“ . ‚
Sorry, but no tags were found
‚;[/insert_php]
[insert_php] print $list; [/insert_php]