• Heya,
    Can anyone tell me how you exclude posts in a certain category from the date.php file? My code is below. Thanks!

    <?php get_header(); ?>
    
    <div class="page">
    
    <!-- BEGINNIG OF ROW-2 -->
    <!-- BEGINNIG OF ROW-2 -->
    <!-- BEGINNIG OF ROW-2 -->
    <div class="row-2">
    
    	<div class="row-2-row-2">
    
    	<!-- BEGINNING OF ROW-2-COL-1 -->
    	<!-- BEGINNING OF ROW-2-COL-1 -->
    	<div class="row-2-col-1">
    		<?php get_sidebar(); ?>
    	</div>
    
    	<!-- BEGINNING OF ROW-2-COL-2 -->
    	<!-- BEGINNING OF ROW-2-COL-2 -->
    	<div class="row-2-col-2">
    
    		<!-- BEGINNING OF ROW-2-COL-2-ROW-1 -->
    		<div class="row-2-col-2-row-1"><?php if(function_exists('show_media_header')){ show_media_header(); } ?></div>
    
    		<!-- BEGINNING OF ROW-2-COL-2-ROW-2 -->
    		<div class="row-2-col-2-row-2">
    		<?php
    		if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6.0') !== FALSE) {
    			echo '<p>The browser you are using to view this website is <b><i>very</i></b> out of date. Please update your computer briefly by selecting "Start", then "All Programs", then "Windows Update" from the top of the list and following the on screen instructions.</p>';
    		}
    		?>
    
    <table>
    	<tr valign="top">
    		<td style="width: 400px;">
    			<h1>By Date</h1>
    			<?php
    			$posts_to_show = 100; //Max number of articles to display
    			$debut = 0; //The first article to be displayed
    			?>
    
    			<?php while(have_posts()) : the_post(); ?>
    				<h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
    				<p><small><?php the_time('M d, Y') ?></small></p>
    				<p><?php the_content(); ?></p>
    
    				<br />
    				<br />
    				<br />
    
    			<?php endwhile; ?>
    		</td>
    	</tr>
    </table>
    
    		</div>
    
    		<!-- BEGINNING OF ROW-2-COL-2-ROW-3 -->
    		<div class="row-2-col-2-row-3"></div>
    	</div>
    	</div>
    
    </div>
    
    <!-- BEGINNIG OF ROW-3 -->
    <!-- BEGINNIG OF ROW-3 -->
    <!-- BEGINNIG OF ROW-3 -->
    <div class="row-3"></div>
    
    </div>
    <?php get_footer(); ?>
  • The topic ‘How do exclude posts in a certain category from date.php, need help…’ is closed to new replies.