• Hello,

    I am currently using the following PHP script to display the image from my posts in a gallery:

    <?php query_posts('showposts=60'); ?>
                            <?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; ?>

    The only problem with this script is that it only displays a set number of images. In this case 60. Is there a way to add pagination to it so that it shows 30 images per page?

    This is the script I am currently using for my pagination:
    <?php if (function_exists('wp_pagenavi')) { ?><?php wp_pagenavi(); ?><?php } ?>

    Any help, comments, or suggestions anyone can provide would be greatly appreciated.

    bespokeordie.com

Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘.php code help,’ is closed to new replies.