Title: Using wp_get_archive without archive.php?
Last modified: August 19, 2016

---

# Using wp_get_archive without archive.php?

 *  Resolved [aichandmokie](https://wordpress.org/support/users/aichandmokie/)
 * (@aichandmokie)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/using-wp_get_archive-without-archivephp/)
 * Hello.
 * I am struggling to get the Archive to be viewed according to the the php template
   I decide. My problem is that when I click on an archive (July 09) I have included
   a template, but for some reason it includes one single post at the start before
   including my template.
 * I am not using archive.php but have used this code in the index.php:
 *     ```
       <?php
   
       		if(is_archive()) : 
   
       			include(TEMPLATEPATH . '/category-blogg.php');
   
       		endif 
   
       	?>
       ```
   
 * Where in the general-template.php can I edit what Archives show when clicking
   on it?
 * – Mokie

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

 *  [thefox913](https://wordpress.org/support/users/thefox913/)
 * (@thefox913)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/using-wp_get_archive-without-archivephp/#post-1158574)
 * i dont know
 *  Thread Starter [aichandmokie](https://wordpress.org/support/users/aichandmokie/)
 * (@aichandmokie)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/using-wp_get_archive-without-archivephp/#post-1158582)
 * thanks for sharing that…
 *  Thread Starter [aichandmokie](https://wordpress.org/support/users/aichandmokie/)
 * (@aichandmokie)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/using-wp_get_archive-without-archivephp/#post-1158588)
 * figured it out myself.
 * Since I already had assigned category-blogg.php to a different is_ I just had
   to include `or is_archive` behind `is_category`

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

The topic ‘Using wp_get_archive without archive.php?’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [aichandmokie](https://wordpress.org/support/users/aichandmokie/)
 * Last activity: [16 years, 10 months ago](https://wordpress.org/support/topic/using-wp_get_archive-without-archivephp/#post-1158588)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
