ThemeShaper Forums » Thematic

[closed]

Post date problem

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

    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

    Posted 4 years ago #
  2. Bennyboy
    Member

    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 4 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.