Last posts per day script ajustment
-
I have found the following script which shows me the last 10 posts.
I’m trying to get the day (“the_time(‘l’)”) above the articles of each day in stead of in front of every separate line.So for example:
Friday
Article 7
Article 6
Article 5
Thursday
Article 4
Article 3
Wednesday
Article 2
Article 1How do I need to change the code to do that?
<h2><?php _e(‘Last 10 Posts’); ?></h2>
<?php
query_posts(‘showposts=10’);
?>
<table>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<tr>
<td>[<?php the_time(‘l’) ?>]</td><td><?php the_time(‘H:i’) ?></td><td>“><?php the_title() ?> </td>
</tr>
<?php endwhile; endif; ?>
</table>
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Last posts per day script ajustment’ is closed to new replies.