Title: Customizing Archives.php
Last modified: August 19, 2016

---

# Customizing Archives.php

 *  Resolved [chengdu-living](https://wordpress.org/support/users/chengdu-living/)
 * (@chengdu-living)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/customizing-archivesphp/)
 * The archives page works fine but how can I remove the “0 comments” text after
   each article? I want to hide comments from the Archives page completely.
 * Thanks in advance!

Viewing 10 replies - 1 through 10 (of 10 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/customizing-archivesphp/#post-1305095)
 * Try removing references to `<?php comments_popup_link();?>` in your theme’s archive.
   php file.
 *  Thread Starter [chengdu-living](https://wordpress.org/support/users/chengdu-living/)
 * (@chengdu-living)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/customizing-archivesphp/#post-1305121)
 * I removed everything referencing comments in archive.php but it still shows. 
   I’m using a Woothemes.com theme (Headlines) if that makes a difference.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/customizing-archivesphp/#post-1305132)
 * Did you remember to press CTRL and F5 simultaneously when viewing an updated 
   page? Or try emptying your browser cache? This should ensure that your web browser
   fetches a fresh copy of the page rather than serving up an out-dated copy from
   your own cache.
 *  Thread Starter [chengdu-living](https://wordpress.org/support/users/chengdu-living/)
 * (@chengdu-living)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/customizing-archivesphp/#post-1305146)
 * yes I did. the page I’m looking at is [http://www.chengduliving.com/archives/](http://www.chengduliving.com/archives/)
   and the archives.php that I’m editing is under wp-content/themes/headlines/
 *  [xdesi](https://wordpress.org/support/users/xdesi/)
 * (@xdesi)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/customizing-archivesphp/#post-1305149)
 * Post up the part in archives.php where it is outputting the title date and then
   comments, it’s at the end of this.
 *  Thread Starter [chengdu-living](https://wordpress.org/support/users/chengdu-living/)
 * (@chengdu-living)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/customizing-archivesphp/#post-1305151)
 * here’s the entire archives.php:
 *     ```
       <?php get_header(); ?>
   
           <div id="content" class="col-full">
       		<div id="main" class="col-left">
   
       		<?php if (have_posts()) : $count = 0; ?>
   
                   <?php if (is_category()) { ?>
                   <span class="archive_header"><span class="fl cat"><?php _e('Archive', 'woothemes'); ?> | <?php echo single_cat_title(); ?></span> <span class="fr catrss"><?php $cat_obj = $wp_query->get_queried_object(); $cat_id = $cat_obj->cat_ID; echo '<a href="'; get_category_rss_link(true, $cat, ''); ?>"><?php _e('RSS feed for this section', 'woothemes'); ?></a></span></span>        
   
                   <?php } elseif (is_day()) { ?>
                   <span class="archive_header"><?php _e('Archive', 'woothemes'); ?> | <?php the_time($GLOBALS['woodate']); ?></span>
   
                   <?php } elseif (is_month()) { ?>
                   <span class="archive_header"><?php _e('Archive', 'woothemes'); ?> | <?php the_time('F, Y'); ?></span>
   
                   <?php } elseif (is_year()) { ?>
                   <span class="archive_header"><?php _e('Archive', 'woothemes'); ?> | <?php the_time('Y'); ?></span>
   
       			<?php } elseif (is_author()) { ?>
                   <span class="archive_header"><?php _e('Archive by Author', 'woothemes'); ?></span>
   
                   <?php } elseif (is_tag()) { ?>
                   <span class="archive_header"><?php _e('Tag Archives:', 'woothemes'); ?> <?php echo single_tag_title('', true); ?></span>
   
                   <?php } ?>
   
                   <div class="fix"></div>
   
               <?php while (have_posts()) : the_post(); $count++; ?>
   
                   <div class="box">
                           <div class="post">
   
       						<?php
       						if (!woo_get_embed('embed','590','420'))
       							woo_get_image('image',200,200,'thumbnail alignleft');
       						else
       							echo woo_get_embed('embed','590','420');
       						?>
                               <h2 class="title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
                               <p class="post-meta">
       							<img src="<?php bloginfo('template_directory'); ?>/images/ico-time.png" alt="" /><?php the_time($GLOBALS['woodate']); ?>
                               </p>
                               <div class="entry">
   
                                   <?php if ( get_option('woo_archive_content') == "true" ) { ?>
       							<?php the_content(__('Read more...', 'woothemes')); ?>
                                   <?php } else { ?>
       							<?php the_excerpt(); ?><span class="read-more"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" class="btn"><?php _e('Read more', 'woothemes'); ?></a></span>
                                   <?php } ?>
   
                               </div>
                               <div class="fix"></div>
                           </div><!-- /.post -->
   
                           <div class="post-bottom">
                               <div class="fl"><span class="cat"><?php the_category(', ') ?></span></div>
                               <div class="fr"><?php the_tags('<span class="tags">', ', ', '</span>'); ?></div>
                               <div class="fix"></div>
                           </div>
                   </div>        
   
                   <?php endwhile; else: ?>
                   <div class="box">
                       <div class="post">
                           <p><?php _e('Sorry, no posts matched your criteria.', 'woothemes') ?></p>
                       </div><!-- /.post -->
                   </div>
                   <?php endif; ?>  
   
                   <div class="more_entries">
                       <?php if (function_exists('wp_pagenavi')) wp_pagenavi(); else { ?>
                       <div class="fl"><?php previous_posts_link(__('Newer Entries', 'woothemes')) ?></div>
                       <div class="fr"><?php next_posts_link(__('Older Entries', 'woothemes')) ?></div>
                       <br class="fix" />
                       <?php } ?>
                   </div>		
   
       		</div><!-- /#main -->
   
               <?php get_sidebar(); ?>
   
           </div><!-- /#content -->
   
       <?php get_footer(); ?>
       ```
   
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/customizing-archivesphp/#post-1305158)
 * Try looking in **archive**.php
 *  Thread Starter [chengdu-living](https://wordpress.org/support/users/chengdu-living/)
 * (@chengdu-living)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/customizing-archivesphp/#post-1305165)
 * my mistake! that is archive.php
 * there is no archives.php
 *  [xdesi](https://wordpress.org/support/users/xdesi/)
 * (@xdesi)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/customizing-archivesphp/#post-1305174)
 * I don’t think thats the page, what other files have you got in there?
 *  Thread Starter [chengdu-living](https://wordpress.org/support/users/chengdu-living/)
 * (@chengdu-living)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/customizing-archivesphp/#post-1305186)
 * template-archives.php!
 * the part to remove was easy to fix and it works now: [http://www.chengduliving.com/archives/](http://www.chengduliving.com/archives/)
 * thanks!

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Customizing Archives.php’ is closed to new replies.

## Tags

 * [archives](https://wordpress.org/support/topic-tag/archives/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 10 replies
 * 3 participants
 * Last reply from: [chengdu-living](https://wordpress.org/support/users/chengdu-living/)
 * Last activity: [16 years, 6 months ago](https://wordpress.org/support/topic/customizing-archivesphp/#post-1305186)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
