I am working on using the wordpress loop to call posts from my wordpress blog into my website. i have my loop set up to grab the 10 most recent posts under the portfolio category and display them on my portfolio page. the problem is that i have 20 items i want to display, but i don't want to have to deal with the load times of 20 images. ive thought about making multiple portfolio pages in dreamweaver, and have each one grab a different set of ten posts, but that's defeating the purpose of using wordpress to make it faster for me to update the page.
is there any way i can have it set up so that when i hit 'next' the page refreshes with the next set of ten posts, and when i hit 'back' the page refreshes with the first ten posts?
i have seen webpages that are like www.example.com/portfolio.php?paged=2
Here is my header that calls the loop
define('WP_USE_THEMES', false); require('./wp/wp-load.php'); query_posts('category_name=portfolio&posts_per_page=10');
and here is where the loop gets placed on the page
<?php while (have_posts()): the_post(); ?> <?php the_content(); ?> <?php endwhile; ?>
any help greatly appreciated. thanks!