I tried to create 2 files, one where the include to the calendar comes first, and one where the calendar comes as the last thing.
Here it is as Last:
http://www.jondt.dk/calendarlast.php
Here it is as First:
http://www.jondt.dk/calendarfirst.php
As you can see, the date works when the calendar is included after the include to wordpress.
The coding look like this for the files
<?php include("calendar/calendar.php") ?>
<?php /* Don't remove this line. */ require('wordpress/wp-blog-header.php'); ?>
<?php wp_get_archives('type=monthly&format=link'); ?>
<?php //comments_popup_script(); // off by default ?>
<?php wp_head(); ?> <img src="../img/layout/heart.gif" alt="" /> <b>Recent news</b><?php c2c_get_recent_posts(); ?>
<?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>
<?php static $counter = 1; if ( $counter > "20" ) { break; } else { if ( in_category(2) && !$single ) { ?>
<img src="../img/layout/heart.gif" alt="" /> <b> <?php the_time(); ?></b>
<img src="../img/layout/arrow.gif" alt="" /><i> <?php the_title(); ?> </i>
<?php the_content(); ?>
<?php $counter++; } } ?> <?php endforeach; else: ?>
<?php _e('Sorry, no posts matched your criteria.'); ?>
<?php endif; ?>
But on this page: http://www.deep-within.dk
Where the include to the calendar comes first, the date works.
What is the difference?
is there anything in my wp codes that can be the difference?