Two posts from different categories, same page

I’m having trouble with something that I’m not sure is possible or not. I hired someone to make my PHP site and so I don’t know anything about how it works, all I know is HTML.

The code that I use on the index to post one post from a single category is this:

[php]

<?php query_posts ($query_string . '&cat=15&showposts=1'); ?> <?php if (have_posts()) : ?>
		<?php while (have_posts()) : 

the_post(); ?>

<?php if (function_exists('fbshare_manual')) echo fbshare_manual(); ?> <?php if (function_exists('tweetmeme')) echo tweetmeme();?>
		<div class="entry-post">
		<?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>
              </div>			

		<?php endwhile; ?>

[/php]

What I want to do is post another post from another category underneath. But if I copy the code and change the category number I get an error and nothing shows up at all.

The problem with just setting the post count to 2 (and not specifying a category) is that it won’t format it correctly or allow me to place “previous” and “next” links, plus I’ll have no control over what gets posted.

Is there a way to do what I’m trying to do that wouldn’t involve anything too complex? My understanding of this stuff is pretty much 0.

Thanks for the help!

Sponsor our Newsletter | Privacy Policy | Terms of Service