• Resolved zorbathut

    (@zorbathut)


    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 https://www.mandible.net/2006/08/ and click the “2006 September” link. With permalinks off, going to https://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.

Viewing 1 replies (of 1 total)
  • Thread Starter zorbathut

    (@zorbathut)

    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.

Viewing 1 replies (of 1 total)
  • The topic ‘Issues with a sparse blog, permalinks, and months’ is closed to new replies.