two column recent entries, how?
-
Help an old fart. I am using a theme for my crappy wordpress powered webpage that has a bottom section with three columns. First column is for recent entries, second for links and third for more links. Here to see what I mean
What I would like is to spread the “recent entries” to two columns. I asked the nice bloke who did the theme and he didn’t have a clue!
Anyway the code for the three columns is as follows…
CODE
<div id="bottom"><!-- Bottom Left -->
<div id="bottom-left">
<?php
$today = current_time('mysql', 1);
if ( $recentposts = $wpdb->get_results("SELECT ID, post_title FROM $wpdb->posts WHERE post_status = 'publish' AND post_date_gmt < '$today' ORDER BY post_date DESC LIMIT 10")):
?><h2><?php _e("Recent"); ?><span><?php _e(" Entries"); ?></span></h2><ul>
<?php foreach ($recentposts as $post) { if ($post->post_title == '') $post->post_title = sprintf(__('Post #%s'), $post->ID);
echo "
<li><a>ID)."'>"; the_title(); echo '</a></li>
'; }?>
</ul>
<?php endif; ?>
</div><!-- Bottom Mid -->
<div id="bottom-mid">
<h2><?php _e("Your"); ?><span><?php _e(" List"); ?></span></h2><ul>
<!-- You list something here but better make it no more than 10 items --><li><a href="http://www.formula1.com/" title="Formula 1">Formula 1</a></li>
<li><a href="" title=""> -</a></li>
<li><a href="" title=""> -</a></li>
<li><a href="" title=""> -</a></li>
<li><a href="" title=""> -</a></li>
<li><a href="" title=""> -</a></li>
<li><a href="" title=""> -</a></li>
<li><a href="" title=""> -</a></li>
<li><a href="" title=""> -</a></li>
<li><a href="" title=""> -</a></li>
</ul>
</div><!-- Bottom Right -->
<div id="bottom-right">
<h2><?php _e("Else"); ?><span><?php _e(" wheres"); ?></span></h2><ul>
<?php get_links('-1', '
<li>', '</li>
', '', FALSE, 'rand', FALSE, TRUE, 10, TRUE); ?>
</ul>
</div></div> <!-- end of #bottom -->How do I modify this to replace the “Bottom Mid” column with the next ten recent entries?
The topic ‘two column recent entries, how?’ is closed to new replies.