StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-28-2012, 08:41 AM
DeltaMarketingGroup DeltaMarketingGroup is offline
Registered User
Pro Plus Member
 
Join Date: Aug 2011
Posts: 12
Default Custom Template (Paged) Only Shows First Page

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(); 

?>
 

Tags
custom post types, custom template, paged

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 02:04 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.