Please check out the following page:
http://lakers.sonikastudios.com/gallery/sample-gallery-post-1/
When you click on the page 2, 3 buttons, or the "next" button it does not work. It always loads up as page #1, and the URL resets.
Here's the code i put in the functions.php in order to get the custom post type, "gallery", working.
add_action( 'init', 'create_post_type' );
function create_post_type() {
register_post_type( 'gallery',
array(
'labels' => array(
'name' => __( 'Galleries' ),
'singular_name' => __( 'Gallery' )
),
'public' => true,
'supports' => array('title', 'editor', 'thumbnail', 'excerpt', 'custom-fields', 'comments')
)
);
Next thing I did:
- I added a post under the "Gallery" topmenu under the admin section, with pagination done.
- I added a template file, gallery.php, and assigned it as a "Gallery" type of template.
- After that, when a gallery type post is opened, the page loads up fine.
However my pagination still does not work, ONLY in the gallery post_type pages.