Help with remove posts in category on first page
-
Okay so I don’t under my theme at all or code but can someone make it that if the category of the post is “Products” (without quotes) it won’t show it. I tried my best but it doesn’t work. Here is “The Loop” (without quotes) page code.
<div id="post-<?php the_ID(); ?>" <?php post_class('clear'); ?>> <?php $thumb = get_thumbnail($post->ID, get_theme_mod('thumb_key'),get_theme_mod('thumb_key')); $width = get_theme_mod('thumb_width'); $height = get_theme_mod('thumb_height'); $auto = get_theme_mod('thumb_auto'); if($thumb) { if($auto == 'Yes') $url = get_bloginfo('template_url').'/timthumb.php?src='.$thumb.'&h='.$height.'&w='.$width.'&a=t&zc=1'; else $url = $thumb; } else { $url = get_bloginfo('template_url').'/images/default-thumb.gif'; } echo '<a class="entry-thumb" href="'.get_permalink().'" title="'.the_title_attribute( 'echo=0' ).'"><img width="'.$width.'" height="'.$height.'" src="'.$url.'" alt="'.get_the_title().'" /></a>'; ?> <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'themejunkie' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2> <div class="entry-meta"> <span class="date"><?php the_time(get_option('date_format')); ?></span> <span class="meta-sep">|</span> <span class="meta-comments"><?php comments_popup_link( __( '0 Comment', 'themejunkie' ), __( '1 Comment', 'themejunkie' ), __( '% Comments', 'themejunkie' ) ); ?></span> </div> <!--end .entry-meta--> <div class="entry-excerpt"> <?php the_excerpt(''); ?> </div> <!--end .entry-excerpt--> </div> <!--end #post-->
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Help with remove posts in category on first page’ is closed to new replies.