richieb799
Member
Posted 5 months ago #
On this site I am working on:
http://www.seymourdirect.co.uk/blog/
When you click on a monthly archive, it displays the most recent posts
I have checked plugins and it doesn't appear to be them, The default archive.php template is present but I don't know if it is being referred to.. the initial blog page is set to default template.
It takes you to a page with the month url: eg. /2011/10 but not the correct order of posts... Maybe it is Template Hierarchy, but how do I adjust this?
richieb799
Member
Posted 5 months ago #
I'm sure this is a simple problem, the right URLs are being directed to but the posts aren't being displayed for the correct month
richieb799
Member
Posted 5 months ago #
Bump, this must be simple for someone more code savvy than me
richieb799
Member
Posted 5 months ago #
Bump, I've found previous threads where the problem lies with the index.php being used rather than the archive.php
does anyone know why? the other threads were closed without a solution
richieb799
Member
Posted 5 months ago #
Bump, I keep bumping this hoping some pro might have a solution.. I don't understand what part of the code is supposed to call the archive.php
It seems to be in the sidebar.php...
[Code moderated as per the Forum Rules. Please use the pastebin]
I can see the wp_get_archives but I don't know if something else is confusing it.
richieb799
Member
Posted 5 months ago #
Still not even a suggestion for this problem? I've since tried adding a plugin to the existing archive list which is in the sidebar.php, I now have collapsing archives.
I noticed the collapsing archives can recognize which posts belong to which month, so why when I click on the month, it takes me to a page which displays all posts?
I don't know whether I need to create a separate archives.php, but that would be kind of naff