Hallo Leute,
Ich brauch' eure Hilfe.
Ich nutze die Funktion http://codex.wordpress.org/Function_Reference/get_the_tags
PHP
<?php $posttags = get_the_tags(); if ($posttags) { foreach($posttags as $tag) { echo '<img src="http://example.com/images/' . $tag->term_id . '.jpg" alt="' . $tag->name . '" />'; } } ?>
So das Problem ist nun ich nutze auch die Variable $tag->description
und ich möchte das die Beschreibung auf eine bestimmte Zahl von Wörter aufhört.
Hat jemand eine Idee :) ?
MfG
Andruh90
Edit: Hat sich erledigt :)