[resolved] Issues with a sparse blog, permalinks, and months (2 posts)

  1. ZorbaTHut
    Posted 7 years ago #

    I have a WordPress blog where much of the early history is full of very sparse posts. It's set up to use full mod_rewrite permalinks. I have a "month" archive, with links to the previous and next month included.

    The problem is that, for any month without entries, I get a 404 rather than an empty month page. Without permalinks there's no issue, but something bizarre is occuring thanks to the permalinks. For an example, go to http://www.mandible.net/2006/08/ and click the "2006 September" link. With permalinks off, going to http://www.mandible.net/?m=200609 works just fine (it shows a "no entries on this month" message, but still shows the previous/next arrows, which is what I want.)

    Any suggestions on how to detect the "permalink-to-month-that-doesn't-have-entries" case in my theme? I'm highly confused.

  2. ZorbaTHut
    Posted 7 years ago #

    I ended up writing a horrible "find next month" chunk of code with the actual set of months with entries in it, so it not only doesn't link to broken pages, but it entirely skips months without entries. Not ideal, especially since the month pages are still broken if you navigate there directly, but it works.

Topic Closed

This topic has been closed to new replies.

About this Topic