WordPress.org

Ready to get started?Download WordPress

Forums

Permalink in calendar displays as /%yea (4 posts)

  1. zaea
    Member
    Posted 10 years ago #

    I've recently transferred my blog to a new server. Everything seems to be in order...the permalinks work fine for posts and categories. But, for some reason, the links in the calendar display only as "/blog/%yea", resulting in a bad request error. My permalink structure is "/%year%/%monthnum%/%postname%/" and I've double-checked that the htaccess file represents the correct code. Any ideas why I'm now having this problem?

  2. godsman
    Member
    Posted 9 years ago #

    I'm having the same issue. my permalink structure is "/article/%post_id%_%postname%" and my calendar shows "/arti" and the monthly archives show "/article/%"

  3. Beel
    Member
    Posted 9 years ago #

  4. icheyne
    Member
    Posted 9 years ago #

    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) {

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.