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. I've 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 suggestions will be greatly appreciated.