• In the midst of writing this post I’ve solved my problem, but I’m going to post it anyway incase others run into the same issue…
    It would seem that using a mod_rewrite permalink structure that doesn’t include the full date (year/month/day) causes the get_calendar() function to bug out. When my permalinks were written as /%year%/%postname%/ the links were coming out incomplete and lead to 404 land.
    Changing the permalink structure to /%year%/%monthnum%/%day%/%postname%/ fixed the problem, but at the cost of very lengthy URI’s.
    If anyone else has any suggestions as to how to get the calendar to function correctly using my original permalinks, I’m all ears 😀

Viewing 3 replies - 1 through 3 (of 3 total)
  • Well, mine are /%year%/%monthnum%/%postname%/ and it’s still getting mangled. Would love some advice!

    I haven’t a solution, but the above works for me.
    Luckily, my blog is only a few weeks old, as including the day in the URL changes the links.

    Change line 104, which is in the function get_day_link, of wp-includes/template-functions-links.php from

    if (” != get_settings(‘permalink_structure’)) {

    to

    if (” != get_settings(‘permalink_structure’) && strpos(get_settings(‘permalink_structure’), ‘%day%’) !== false) {

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Calendar error related to permalink structure’ is closed to new replies.