Bueno quería saber si alguien me puede ayudar con los post aleatorios, lo que pasa es que si queda bien cuando esta vertical pero a mi me gustaría que quedara horizontal en el footer.
esto lo tengo en el footer
y aca el CSS
que puedo hacer y gracias.

esto lo tengo en el footer
Insertar CODE, HTML o PHP:
<div class="aleatorio">
<ul>
<?php
$random_posts = new WP_Query();
$random_posts->Query ('orderby=rand&showposts=5');
while ($random_posts->have_posts()): $random_posts->the_post()
?>
<li>
<?php
$files = get_children("post_parent=$id&post_type=attachment&post_mime_type=image");
if($files){
$keys = array_keys($files);
$num=$keys[0];
$thumb=wp_get_attachment_thumb_url($num);
print "<img src='$thumb' alt='".get_the_title()."' style='padding: 8px 12px 4px 7px; float: left;' width='140' height='140'/>";
}else{
print "<img src='http://publisnet.com/blog/images/wachar.png' style='padding: 8px 12px 4px 7px; float: left;' alt='".get_the_title()."' width='140' height='140'/>";
}
?>
<a href="<?php the_permalink();?>" rel="bookmark" title="<?php the_title(); ?>">
<?php the_title(); ?><br>
</a>
</li>
<?php endwhile; ?>
</ul>
</div>
y aca el CSS
Insertar CODE, HTML o PHP:
.aleatorio ul, .aleatorio li {margin: 0; padding: 0; border: 0; outline: 0; list-style-type:none;}
.aleatorio ul {background-color:#e7e7da;font-family:verdana;font-size:12px;}
.aleatorio ul li {text-decoration:none;border-bottom:1px solid #ddd; min-height: 60px;}
.aleatorio ul li a {text-decoration:none;padding:7px 13px; display:block; color:#333; font-weight:bold;}
.aleatorio ul li a:hover {color:#889800;}
.aleatorio ul li a span {text-decoration:none;padding-left:6px; font-size:11px; font-weight:normal; line-height: 20px;}
.aleatorio ul li a:hover span {color:#666;}
que puedo hacer y gracias.