Title: archive.php loads instead of single.php
Last modified: August 19, 2016

---

# archive.php loads instead of single.php

 *  [owzzz](https://wordpress.org/support/users/owzzz/)
 * (@owzzz)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/archivephp-loads-instead-of-singlephp/)
 * Hi Everyone I’ve got an odd thing happening in my theme, when I click on a blog
   post and then wait to see the full blog post (single.php) load, it reverts to
   the archive.php page instead. I don’t understand why this is happening as the
   single.php is present in the folder.
 * If you want to see what I mean view the following [URL](http://icomprintmanagement.co.uk.s88828.gridserver.com/blog/)
   and click on one of the blog posts, you will notice the archive information in
   the sidebar and in my breadcrumb trail..
 * had anyone had this? I cannot figure this one out..
 * Any help would be great

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

 *  [alexgraham](https://wordpress.org/support/users/alexgraham/)
 * (@alexgraham)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/archivephp-loads-instead-of-singlephp/#post-1427364)
 * your links are pointing to the wrong url, think you’re using the wrong wp function.
   Try using something like this:
    `<a class="blog-link" href="<?php the_permalink();?
   >" title="<?php the_title_attribute(); ?>"><?php the_title() ?></a>`
 * Alex
 *  Thread Starter [owzzz](https://wordpress.org/support/users/owzzz/)
 * (@owzzz)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/archivephp-loads-instead-of-singlephp/#post-1427377)
 * I already have something similar:
 * `<h2 class="postHeader"><a href="<?php the_permalink() ?>" rel="bookmark" title
   ="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a
   ></h2>`
 * ?
 *  Thread Starter [owzzz](https://wordpress.org/support/users/owzzz/)
 * (@owzzz)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/archivephp-loads-instead-of-singlephp/#post-1427484)
 * I have noticed the same problem on another blog I set up, Has anyone experienced
   this problem?
 * the other blog is [Joe-blogggs](http://www.joe-blogggs.co.uk)
 * Any ideas why it’s not referencing the correct posts?
 * Any help would be great.. I’m pulling my hair out with this…
 *  Thread Starter [owzzz](https://wordpress.org/support/users/owzzz/)
 * (@owzzz)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/archivephp-loads-instead-of-singlephp/#post-1427491)
 * Hi, I figured out what was wrong.. the perma link structure was wrong.. I set
   up a custom structure but only put in /%category%/ and not the full structure/%
   postname%/%post_id%/
 * Ooops..

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

The topic ‘archive.php loads instead of single.php’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [owzzz](https://wordpress.org/support/users/owzzz/)
 * Last activity: [16 years, 2 months ago](https://wordpress.org/support/topic/archivephp-loads-instead-of-singlephp/#post-1427491)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
