weiching (January 10th, 2015)
<?php
// setup the pagination and query
$paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1;
query_posts( array( 'posts_per_page' => 10, 'post_type' => APP_POST_TYPE, 'post_status' => 'publish, pending, draft', 'author' => $current_user->ID, 'paged' => $paged ) );
// build the row counter depending on what page we're on
if ( $paged == 1 ) $i = 0; else $i = $paged * 10 - 10;
?>
<?php
// setup the pagination and query
$paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1;
query_posts( array( 'posts_per_page' => 50, 'post_type' => APP_POST_TYPE, 'post_status' => 'publish, pending, draft', 'author' => $current_user->ID, 'paged' => $paged ) );
// build the row counter depending on what page we're on
if ( $paged == 1 ) $i = 0; else $i = $paged * 50 - 50;
?>
weiching (January 10th, 2015)
weiching (January 10th, 2015)
There are currently 1 users browsing this thread. (0 members and 1 guests)