The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

' WP-Paginate ' and Custom Templates .... Help! (1 post)

  1. mooapo
    Posted 4 years ago #

    I had created a Custom Gallery Template, I want to only have 20 images per page. So what I wanted to do, is use the WP-Paginate.

    So my question is, can I use it within a Custom Template, and if so, how?

    I am open to other suggestions if I can get the same result.

    Here is the code to my Custom Template:

    	Template Name: Gallery Template
    <?php get_header(); ?>
    	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    		<article class="post" id="post-<?php the_ID(); ?>">
    			<h2><?php the_title(); ?></h2>
            <?php endwhile; endif; ?>
    <?php get_footer(); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic