Link to see all the articles in current category, broken (1 post)

  1. AllyV4
    Posted 8 years ago #

    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:

    // 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">
    $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>
    <?php endforeach; endif ; ?>

    I can't find where the problem is :(

    Hope that some smart guys here could help me :)

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.