WordPress.org

Ready to get started?Download WordPress

Forums

Mimbo Theme: Exclude category from Latest Posts (1 post)

  1. xedz
    Member
    Posted 2 years ago #

    Hey guys,

    I have 2 categories that i don't want to appear on the front page of my Mimbo Theme.

    I guess i need to change some code here:

    <div id="more-posts">
    		<h3><?php _e('Últimas notícias','Mimbo'); ?></h3>
    
    		<?php
    		}
    		elseif( $postcount > 0 && $postcount <= 4 ) { 
    
    		//GETS NEXT FOUR EXCERPTS
    		?>
    
    		<div class="clearfloat recent-excerpts">
    			<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>">
    <?php echo get_post_image (get_the_id(), '', '', '' .get_bloginfo('template_url') .'/scripts/timthumb.php?zc=1&w=105&h=85&src='); ?></a>
    
    <h4><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h4>
    
    <p class="date"><?php the_time('d/n/y'); ?> • </p>
    			<?php the_excerpt(); ?>
    		</div>

    How to do that?
    Excluding those categories from the latest posts is enough or i need to exclude them from older posts too?

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic