Just a quick edit. I am using WordPress version 2.9.2. It did not have that as a choice in the drop down.
I am looking to have random posts on my home page. Specifically I am talking about the center column which is titled "recent posts". I have tried a few things that have not worked and I was hoping that someone might be able to help.
I should also point out that I am completely illiterate when it comes to PHP. I am able to fumble around in there and usually figure things out with some things out but I need dumbed down guidance.
I have tried the following items.
1) I installed the plugin Random Posts by Robert Marsh and inserted the correct code <?php random_posts(); ?> in the index.php page. It correctly started producing random posts on my home page in the center column. The problem is it did not do anything with the posts that are showing now. It actually added another section with simple bullet points and randomized those.
2) I tried inserting the following code &orderby=rand in there as well. That was based on help I received for another theme I am working on and that actually worked...for that theme. But on this one, it simply does not do anything. I added it to:
<?php query_posts('cat=13,14,15,16,17,18,19,20,21,29,30,22,23,24,25,28,26,27&showposts=5'); ?>
which made <?php query_posts('cat=13,14,15,16,17,18,19,20,21,29,30,22,23,24,25,28,26,27&showposts=5&orderby=rand'); ?>
3) I tried another long drawn out bit that I found on another website but it created parse errors and so I had to nix that.
If anyone could help, that would be awesome! Below is the code from index.php:
<!-- Middle Column -->
<div id="midcolumn">
<h2>Recent Posts</h2>
<!-- Loop for latest news -->
<?php $oddentry = 'class="gray" '; ?>
<?php query_posts('cat=13,14,15,16,17,18,19,20,21,29,30,22,23,24,25,28,26,27&showposts=5'); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div <?php echo $oddentry; ?>>
<div class="midcolumnpost">
<h3><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>
<?php the_excerpt_reloaded(30, '<img><a>', 'content', false, 'More...', true);?>
<div class="details">
| <?php comments_popup_link(__('Leave comment'), __('1 Comment'), __('% Comments'));?> | <a href="<?php echo get_permalink(); ?>" title="Read More">Read More</a>
</div>
</div>
</div>
<?php /* Changes every other post to a different class */ $oddentry = ( empty( $oddentry ) ) ? 'class="gray" ' : ''; ?>
<!-- End of Loop for middle column -->
My website in question is http://www.truthlighthouse.com
Please try to make the instructions as simple and complete as possible. I apologize but I really don't know much about the inner workings of PHP.
Thanks so much!
[moderated--bump removed. Please refrain from bumping as per Forum Rules]