Hello,
I am working with a page .php template to create an image gallery with pagination showing 30 images per page. The page as it looks now can be found here:
http://www.bespokeordie.com/image-gallery/
This is the code I am using:
<?php/*Template Name: Image Gallery Full*/?>
<?php get_header(); ?>
<!-- Middle Starts -->
<div id="middle-out-top">
<div id="middle-out-bottom">
<div id="middle-content" class="full">
<div id="middle-content-bottom" class="full">
<!-- Content Starts -->
<div id="content" class="wrap full">
<div id="main-content" class="fullwidth">
<div class="page post wrap">
<br /><br />
<h2 class="arh"><?php the_title(); ?></h2>
<?php query_posts('showposts=30'); ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php $wp_query->is_home = false; ?>
<?php woo_get_image('image','thumbnail','','','thumbnail gallery'); ?>
<?php endwhile; endif; ?>
<div class="more_entries wrap">
<?php if (function_exists('wp_pagenavi')) { ?><?php wp_pagenavi(); ?><?php } ?>
</div>
</div>
</div>
</div>
<!-- Content Ends -->
</div>
</div>
</div>
</div>
<!-- Middle Ends -->
<?php get_footer(); ?>
I have tried doing my homework, but failed multiple times with the $query_string function. See my previous failed attempts here:
http://wordpress.org/support/topic/280185?replies=8
Does anyone have any suggetions? This code is so small and so basic, yet I am struggling over and over again. Please help.