WP
    ~
Advanced Hosters -

samedi
: 17.04.2008
: 214
# : 03, 2008 5:14 pm
.

:

<!-- recent posts box -->
<div class="recent">
    <h2>Recent posts</h2>
    <ul class="recentposts">
    <?php query_posts('category_id=1&showposts=5'); ?>
    <?php while (have_posts()) : the_post(); ?>
        <li>
            <span class="recentdate"><?php the_date('d.m'); ?></span>
            <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a>
        </li>
    <?php endwhile;?>
    </ul>
</div>
<!-- /recent posts box -->



. , .

?

samedi
: 17.04.2008
: 214
# : 03, 2008 5:22 pm
. RTFM. . .

:
SPECIAL NOTE: When there are multiple posts on a page published under the SAME DAY, the_date() only displays the date for the first post (that is, the first instance of the_date()). To repeat the date for posts published under the same day, you should use the Template Tag the_time() with a date-specific format string.

This tag must be used within The Loop.



, - .
    ~