I'm fairly new to WordPress and was wondering how to control the function calls that retrieve posts:
With the following code below (some code omitted for brevity):
'
<?php if (have_posts()) : ?>
<?php the_excerpt(); ?>
'
and then
'
<?php $currCount=0; ?>
<?php while (have_posts()) : the_post(); ?>
<?php if ($currCount > 0 && $currCount <= 8) : ?>
<?php the_excerpt(); ?>
<?php $currCount++; ?>
'
This will result in showing the first post, and then the next eight.
I know this is not good coding (php is not my first language :)), but I just want to know if there's an easier way of doing this? Is there a particular function that handles the SQL calls easily?