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-24-2012, 10:59 AM
KHCreative KHCreative is offline
Registered User
Pro Plus Member
 
Join Date: Jul 2012
Posts: 43
Default CPT and pagination

Hey gang,

I'm trying to create a page template that will show all blog posts, including all cpt. Currently I have this working aside from the pagination. The links are showing up, but all pages have the same content as page 1. Can someone tell me what I'm missing?

http://fuelingnewbusiness.com/home/

Code:
<?php
/**

Template Name: Custom Blog

 */


 
remove_action('genesis_loop', 'genesis_do_loop');
add_action('genesis_loop', 'custom_do_cat_loop');
 
function custom_do_cat_loop() {
    global $query_args;  // any wp_query() args
    $args= array('post_type' => 'post');
    genesis_custom_loop(wp_parse_args($query_args, $args));
}



genesis();
Thanks,
Keith
 

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pagination? JamesFalconer General Discussion 3 03-25-2010 10:00 AM
Better pagination manoffitness General Discussion 1 02-16-2010 07:30 AM


All times are GMT -5. The time now is 05:10 PM.

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