dadamchu (April 23rd, 2014)
query_posts( array( 'post_type' => APP_POST_TYPE, 'ignore_sticky_posts' => 1, 'paged' => $paged ) );
query_posts( array( 'post_type' => APP_POST_TYPE, 'ignore_sticky_posts' => 1, 'paged' => $paged, 'meta_key' => 'cp_ad_sold', 'meta_compare' => 'NOT EXISTS' ) );
$post_type_url = add_query_arg( array( 'paged' => 2 ), get_post_type_archive_link( APP_POST_TYPE ) );
<div class="paging"><a href="<?php echo $post_type_url; ?>"> <?php _e( 'View More Ads', APP_TD ); ?> </a></div>
dadamchu (April 23rd, 2014)
There are currently 1 users browsing this thread. (0 members and 1 guests)