Hi, hope someone can point out where I'm going wrong!
I'm using a text widget to add posts in a category to the sidebar on the front page. All works fine, except for the date, it defaults to November 2009, for some reason.
Here's the code - I'm a PHP newbie really, so I've just been piecing bits of code together, apologies if it's nasty!
<div id="work">
<h2 class="latest">What's happening today?</h2>
<?php $recent = new WP_Query(); ?>
<?php $recent->query('cat=21&showposts=3'); ?>
<?php while($recent->have_posts()) : $recent->the_post(); ?>
<ul class="side_news">
<li>
<div class="side_title"><?php the_title(); ?></div>
<div class="side_content"><?php the_content(); ?></div>
<div class="side_time"> Posted on <?php the_time('d/m/Y'); ?></div>
</li>
</ul>
<?php endwhile; ?>
</div>
Hope that makes sense and some kind soul can give me a helping hand!
cheers
Benny