• 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 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)
  • 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

    (@owzzz)

    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

    (@owzzz)

    I have noticed the same problem on another blog I set up, Has anyone experienced this problem?

    the other blog is Joe-blogggs

    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

    (@owzzz)

    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.