Support » Fixing WordPress » Link to see all the articles in current category, broken

  • Hi everybody,

    I’ve noticed a problem since a few days. In my sidebar (I have the Mimbo 2.2 theme), the link to see all the other articles in the current category is now broken.
    It seems that there is no more “link”, so it only refers to the current articles instead of the current category. See the href:

    <li><strong><a href="" title="Voir tous les articles classés dans blablabla">Archives de 'blablabla' &raquo;</a></strong></li>

    which is an excerpt of the following code:

    <?php
    // this is where 10 headlines from the current category get printed
    if ( is_single() ) :
    global $post;
    $categories = get_the_category();
    foreach ($categories as $category) :
    ?>
    <li><h2>Plus de cette catégorie</h2>
    <ul class="bullets">
    <?php
    $posts = get_posts('numberposts=10&category='. $category->term_id);
    foreach($posts as $post) :
    ?>
    <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
    
    <?php endforeach; ?>
    
    <li><strong><a href="<?php get_category_link($category->term_id);?>" title="Voir tous les articles classés dans <?php echo $category->name; ?>">Archives de '<?php echo $category->name; ?>' &raquo;</a></strong></li>
    </ul>
    </li>
    <?php endforeach; endif ; ?>

    I can’t find where the problem is 🙁

    Hope that some smart guys here could help me 🙂

  • The topic ‘Link to see all the articles in current category, broken’ is closed to new replies.