ThemeShaper Forums » Thematic


Post date problem

(2 posts)
  • Started 11 years ago by Bennyboy
  • Latest reply from Bennyboy
  • This topic is resolved
  1. Bennyboy

    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">
                <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>
    <?php endwhile; ?>

    Hope that makes sense and some kind soul can give me a helping hand!


    Posted 11 years ago #
  2. Bennyboy

    Right, of course, as soon as I posted this I found out the problem - it's another plugin causing the issue. I'll have to see if I can fix it!

    Posted 11 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.