WordPress.org

Ready to get started?Download WordPress

Forums

Calendar problem (8 posts)

  1. mkgago
    Member
    Posted 9 years ago #

    the calendar on my index page shows up, but clicking on the link to a previous month doesn't work. I assume that this has something to do with the way I set up my permalink structure, but I'm not sure how to fix it. I've found the get_calendar function in the template-functions-general.php file, but don't know what to adjust to make this work. Does anyone know?

    Thanks in advance for your help. Here is my site: http://www.tatteredcoat.com (click on Dec below the calendar to see the problem).

  2. Chadwick
    Member
    Posted 9 years ago #

    have you modified the .htaccess for permlinks?

    I did that on mine and it works fine
    http://chadwick.fbsdhosting.com

  3. mkgago
    Member
    Posted 9 years ago #

    No, I don't think I did. How do I do that? WP tells me that "Using the permalink structure value you currently have, /%year%-%monthnum%-%day%/%postname%, these are the mod_rewrite rules you should have in your .htaccess file. Click in the field and press CTRL + a to select all."

    But, looking at the .htaccess file, I'm not sure what I'm supposed to change...

    thanks for the help.

  4. mkgago
    Member
    Posted 9 years ago #

    here's my .htacess...what do I change?:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^category/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wp-feed.php?category_name=$1&feed=$2 [QSA]
    RewriteRule ^category/?(.*) /index.php?category_name=$1 [QSA]
    RewriteRule ^author/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wp-feed.php?author_name=$1&feed=$2 [QSA]
    RewriteRule ^author/?(.*) /index.php?author_name=$1 [QSA]
    RewriteRule ^([0-9]{4})-([0-9]{1,2})?-([0-9]{1,2})?/?([_0-9a-z-]+)?([0-9]+)?/?$ /index.php?year=$1&monthnum=$2&day=$3&name=$4&page=$5 [QSA]
    RewriteRule ^([0-9]{4})-([0-9]{1,2})?-([0-9]{1,2})/([_0-9a-z-]+)?/(feed|rdf|rss|rss2|atom)/?$ /wp-feed.php?year=$1&monthnum=$2&day=$3&name=$4&feed=$5 [QSA]
    RewriteRule ^([0-9]{4})-([0-9]{1,2})?-([0-9]{1,2})/([_0-9a-z-]+)?/trackback/?$ /wp-trackback.php?year=$1&monthnum=$2&day=$3&name=$4 [QSA]
    RewriteRule ^feed/?([_0-9a-z-]+)?/?$ /wp-feed.php?feed=$1 [QSA]
    RewriteRule ^comments/feed/?([_0-9a-z-]+)?/?$ /wp-feed.php?feed=$1&withcomments=1 [QSA]

  5. You need to have at least /archives/%year%/%monthnum%/%day%/ in order for your calendar to function properly.

    http://codex.wordpress.org/Using_Permalinks

  6. mkgago
    Member
    Posted 9 years ago #

    sorry for the noob issues, but I'm still confused after following your link. When I tried putting /archives/%year%/%monthnum%/%day%/ into the first gray box on the options-permalink page, and then clicking "update permalink structure," the links to my old posts no longer worked. Do I have to do that and then add a mod rewrite rule to the .htaccess file?

  7. Yes, a text output should appear towards the bottom of the Options/Permalinks page after you create the permalinks. Add that to your .htaccess file. Just follow the instructions at Options/Permalinks and/or http://codex.wordpress.org/Using_Permalinks . Just read everything and you'll be fine. And, since you'll have to do this over again, use the following as your permalink (it removes the possibility of destroying your site because you posted twice in one day):
    /archives/%year%/%monthnum%/%day%/%postname%/

  8. mkgago
    Member
    Posted 9 years ago #

    Got it. Thanks very much, macmanx--everything is working now.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags