WordPress.org

Ready to get started?Download WordPress

Forums

Calendar Link? (26 posts)

  1. logres
    Member
    Posted 10 years ago #

    If I go to the permalink for a posting, e.g., http://symtym.com/wp/index.php/arch/2004/05/tie_fomite/, it goes to the posting fine. If I try to use the calendar date to go to a particular posting date I get http://symtym.com/wp/inde
    I'm not certain what I've done. I'm very much a novice, having just installed it 2 days ago.
    TIA

  2. Mark (podz)
    Support Maven
    Posted 10 years ago #

    Is this happening on a particular date ?
    I can't replicate it, and the calendar links seem to be fine for me ?

  3. Anonymous
    Unregistered
    Posted 10 years ago #

    It happens for all calendar dates. Did you try it with the URLs in the original post? I just checked them and the problem is stll present. Thanks

  4. logres
    Member
    Posted 10 years ago #

    I'm not sure how I did that last comment...but I'll try again.
    It happens for all calendar dates. Did you try it with the URLs in the original post? I just checked them and the problem is stll present. Thanks

  5. OperaManiac
    Member
    Posted 10 years ago #

    there was a bug in calendar links with non default permalink rewrite rulez... does this mean the bug was not fixed?
    try with the recommended permalink structure...

  6. Anonymous
    Unregistered
    Posted 10 years ago #

    On my installation at http://andysocial.com/wordpress, I get useless calendar links also. It truncates at arch instead of filling out archive/2004/05/post-name or whatever.
    With the wonky email posting I've encountered, I'm glad I am keeping this only for testing and not putting it in place of my existing site setup.

  7. Ryan Boren
    WordPress Dev
    Posted 10 years ago #

    This is a known limitation and will be addressed in the next release.

  8. Anonymous
    Unregistered
    Posted 10 years ago #

    "Limitation" meaning "it just plain doesn't work"?

  9. Curioso
    Member
    Posted 10 years ago #

    A simple fix would be to change the following line in the function get_day_link in 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) {

  10. aletheia
    Member
    Posted 10 years ago #

    That works!
    thanks curioso :-)

  11. Gaile
    Member
    Posted 10 years ago #

    still not working for me...

  12. Gaile
    Member
    Posted 10 years ago #

    I should say - it works for IE, but not Mozilla. And I KNOW WORDPRESS DOESN'T want to be just an IE application... ;)

  13. Ryan Boren
    WordPress Dev
    Posted 10 years ago #

    Fixed in CVS.

  14. Gaile
    Member
    Posted 10 years ago #

    Is it a simple fix - I'd rather just stay with the version I have, so if it's just a line or two that needs editing, maybe someone could post it here?
    Thanks.

  15. Gaile
    Member
    Posted 10 years ago #

    Can anyone tell me if it's just a line or two that can be corrected manually instead of updating everything?

  16. Gaile
    Member
    Posted 10 years ago #

    Okay then - I tried the latest CVS version and I'm still having problems with this - anyone else??

  17. xircom
    Member
    Posted 10 years ago #

    see curioso's post above that indicates what lines of code need to be replaced. I was having the same issue and it worked for me.

  18. Gaile
    Member
    Posted 10 years ago #

    ...been there and done that - still having issues with Mozilla.
    I'm going to back track and see what else I've done that may have affected this, since it works for IE apparently.

  19. cyclonus
    Member
    Posted 10 years ago #

    Gaile, I'm using Mozilla, and I just did the code that Curioso posted and it now works for me. I do have a somewhat fresh copy of WP1.2, so maybe that's helping me.
    Wanna elaborate what Moz is doing?

  20. TechGnome
    Moderator
    Posted 10 years ago #

    Gaile - be sure to clean out your cache... .FF/Mozi is *very* good about using what's in it's cache. I've had problems before where new changes weren't being picked up because of that.
    TG

  21. andystreich
    Member
    Posted 10 years ago #

    Note: the same fix given by Curioso above is needed in template-functions-general.php in the get_bloginfo (about line 21 in my copy of v1.2) if you want your rss etc. feeds to work.

  22. OtherMichael
    Member
    Posted 10 years ago #

    Just adding a "calendar stuck on month" note to trigger the search function for others.... I've been looking for an answer for several days, now..... I had a problem where the calendar was "stuck" on the current month. Clicking the previous month button would display that month's entries, but the calendar wouldn't update.
    The %year%/%monthnum%/%postname% permalink-solution solved the problem. I had been avoiding it, becuase the trackback-length ruined the display. Found a separate answer to that.
    --the Other michael

  23. node
    Member
    Posted 10 years ago #

    Just for the record, the line you want to edit to fix the calendar links in wp-includes/template-functions-links.php is line number 104, in the get_day_link function. For the text to insert, see Curioso's post above.

  24. Anonymous
    Unregistered
    Posted 9 years ago #

    The %year%/%monthnum%/%postname% workaround is not a solution for most non-English (non-ASCII?) blogs, due to another limitation in %postname% conversion.

  25. Kafkaesqui

    Posted 9 years ago #

    Which is why there's at least one more way:
    /%year%/%monthnum%/%post_id%

  26. Anonymous
    Unregistered
    Posted 9 years ago #

    Seems to still be broken in 1.2.2, is this correct?
    Brian

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags