• Hi, have a nice day!

    I am implementing my blog using Mimbo 3. In sidebar.php have a nice code. This show “more from this category”…the next is the code:

    <!–BEGIN ‘MORE FROM THIS CATEGORY’–>
    <?php
    if ( is_single() ) :
    global $post;
    $categories = get_the_category();
    foreach ($categories as $category) :
    $posts = get_posts(‘numberposts=4&exclude=’ . $GLOBALS[‘current_id’] . ‘&category=’. $category->term_id);
    if(count($posts) > 1) {
    ?>

    <div class=”widget”>
    <h3><?php _e(‘More in’,’Mimbo’); ?> ‘<?php echo $category->name; ?>'</h3>

    </div>

    <?php } ?>

    <?php endforeach; ?>
    <?php endif; ?>

    <!–END–>

    My questions is… How do I exclude certain categories of results that show? Please Help Me…

    Tanks a lot,

    Pavel

  • The topic ‘exclude category in sidebar of mimbo script’ is closed to new replies.