Question : Need help modifying query_post

Hello

I am modifying a wordpress template I purchased to bring in the latest 3 blog posts on the home page.  The posts are coming in I just need to limit the number to 3.  See code below.

Thanks for the help!
Jules
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
// code already there
query_posts("cat=$blog_include&showposts=$blog_num&paged=$page");

// do I do just add a separate line or is there some way to combine the two?
query_posts($query_string.'&showposts=3');


// Here is the full code block in case it's helpful
<?php                              
$blog_cats_include = get_option('vilisya_blog_cats_include');
if(is_array($blog_cats_include)) {
$blog_include = implode(",",$blog_cats_include);
} 

$page = (get_query_var('paged')) ? get_query_var('paged') : 1;
$blog_num = get_option('vilisya_blog_num');
$blogtext = (get_option('vilisya_blogtext')) ? get_option('vilisya_blogtext') : 100;
query_posts("cat=$blog_include&showposts=$blog_num&paged=$page");
query_posts($query_string.'&showposts=3');								  

while ( have_posts() ) : the_post();
$wp_query->is_home = false;
?>

Answer : Need help modifying query_post

I believe it's a legitimate page but I got my copy from here: https://addons.mozilla.org/en-US/firefox/addon/3829/
Random Solutions  
 
programming4us programming4us