• I’ve searched here and on the web for answers to this – some people seem to have a similar problem, but no ones seems to have posted a solution.

    I’m setting up a site that effectively has two blogs – a journal-type one (“blog”) and more general news (“news”). The multi-blog solutions for WP seemed like overkill, so as there’s no real need for fine-grained categories, I’ve just set up two categories to represent the two blogs, with customized post list code accordingly.

    Individual permalinks work fine with this format:

    /%category%/%year%/%monthnum%/%postname%/

    But I can’t seem to get the monthly archives working. I just get a 404 for any URL like this:

    /%category%/%year%/%monthnum%/

    Could anyone at least direct me to the part of WP’s code that controls what URL goes through to archive.php so I can adapt it? Any other ideas?

    thanks,

    Gyrus

Viewing 5 replies - 1 through 5 (of 5 total)
  • Activate this plugin, and you’ll see the permalink structure in the order in which it’s followed, as well as the actual query WordPress uses to try to find the post(s) it thinks you’re looking for.

    My guess is that WP is taking requests of that form to be for something else (say for a page or something like that) that doesn’t actually exist.

    Thread Starter Steve Taylor

    (@gyrus)

    Thanks. On activating the plugin, I started getting errors saying:

    “Cannot modify header information – headers already sent”

    It seemed to be the PXS Mail plugin that was having problems, so I deactivated that. But then I got the same error from /wp-includes/pluggable_functions.php. And now after deactivating and reactivating Dump Environment (with the headers error each time), I get nothing – just the normal page (or 404) as usual.

    I’ll try shoving the Dump code in by hand somewhere, but any pointers in the meantime gratefully received!

    Thread Starter Steve Taylor

    (@gyrus)

    OK, problem solved. As per usual this week for me, it was a brainfart 😉

    Could you explain how you solved the problem, for the benefit of those who might be in similar situations in the future?

    I would really like to know how you set up these two categories for blogs! I’ve been trying to figure out how to create a second “index” where I can create a different list of posts without users coming from the actual index.php. The idea is to have a mini-blog post list on one page and the actual blog with all posts on another page — except I want both to have unique permalinks. Anyone?

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

The topic ‘Category permalinks not working’ is closed to new replies.