WordPress.org

Forums

Calendar in include doesn't update (2 posts)

  1. DianeV
    Member
    Posted 10 years ago #

    I've got a 1.2 blog for which I put the menu in a php include -- including the calendar:

    <?php include("http://designerjones.com/incl/sidebar.php"); ?>

    Top of include file:
    <?php
    require('../wp/wp-blog-header.php');
    require('../wp/wp-config.php');
    ?>

    which includes:
    <?php get_calendar(); ?>

    The include works, including the calendar *links*, but the calendar itself doesn't update when you move from month to month. Click on the previous month link (which does take you to the correct page) and the calendar info does not change -- it shows the current date. Open a different browser, clear the cache, dump cookies and go directly to the first post (made in April), and the calendar displays the current date (that is, it's June 2005).

    My permalink structure is: /%year%/%monthnum%/%day%/%postname%/

    The above works on every WP 1.2 installation where the calendar is in the template rather than an include. This makes me think that the include file may be being cached or perhaps get_calendar won't work in an include. I've searched the forums and Codex but haven't found a solution. Would anyone have any hints about how to solve this, or where to turn?

    The site: http://designerjones.com

  2. DianeV
    Member
    Posted 10 years ago #

    No answer to this one?

Topic Closed

This topic has been closed to new replies.

About this Topic