Hi I have a site that is using a custom template to display a custom post type. I Was trying to get this toll emulate the standard blog template only pulling my custom post type. It looks okay until you try to go to the second page of postings and it load the second page with the same posts as the first page.
Any help or direction on where I should look to fix this would be greatly appreciated!
This is what my template file looks like:
Code:
<?php
/*
Template Name: Equipment
*/
/** Remove the post meta function */
remove_action( 'genesis_after_post_content', 'genesis_post_meta' );
/** Remove the post info function */
remove_action( 'genesis_before_post_content', 'genesis_post_info' );
/**custom hooks below here...*/
remove_action('genesis_loop', 'genesis_do_loop');
add_action('genesis_loop', 'custom_loop');
function custom_loop() {
global $paged;
$args = array(
'post_type' => 'equipment',
'post_per_page' => 3,
'features' => 2,
'orderby' => 'ASC'
);
?>
<h1><?php the_title(); ?></h1>
<?php
genesis_custom_loop( $args );
}
genesis();
?>