link this really is my index.php from the theme I attempt to modifiy the query_publish but does not work Just how can show only one publish ??

Very thanks

Simply change:




find this line:

<?php while (have_posts()) : the_post(); ?>

Then replace that line with this particular code:

<?php $my_query = new WP_Query('showposts=1');
while ($my_query->have_posts()) : $my_query->the_post();
$do_not_duplicate = $post->ID; ?>

You are able to change the most important, to whatever number you would like if for instance you'll need 3 posts. Hope this help.