• Hi all,

    I want to add an image (or in every case something) before the text which is generated in my sidebar by the command wp_get_archives. So for example i want to have something like this:

    * August (20)
    * September (34)

    etc…

    How can i do this?

    I found a solution for the categories part. This is arranged by this piece of code:

    <?php
      $categories = get_categories();
      foreach ($categories as $cat) {
      echo '<li><a href="'.get_category_link( $cat->cat_ID ).'/">
    <span>* '.$cat->cat_name.' ('. $cat->category_count .')</span></a></li>';
      }
    ?>

    Is something like this mayby also possible for the archives part?

    Tnx in advance!

The topic ‘wp_get_archives with image before text’ is closed to new replies.