Question

Quelqu'un peut-il me dire comment afficher un nombre de postes dans cet extrait de code?

<?php $tags = get_tags();
   if ($tags) {
   foreach ($tags as $tag) {
   echo '<li><a href="' . get_tag_link( $tag->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $tag->name ) . '" ' . '>' . $tag->name.'</a> </li> ';
   }
};?>

Pas de solution correcte

Licencié sous: CC-BY-SA avec attribution
Non affilié à wordpress.stackexchange
scroll top