<?php // show all ads but make sure the sticky featured ads don't show up first
$paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1;
query_posts( array( 'post_type' => APP_POST_TYPE, 'ignore_sticky_posts' => 1, 'paged' => $paged, 'meta_key' => 'cp_ad_sold', 'meta_compare' => 'NOT EXISTS' ) );
$total_pages = max( 1, absint( $wp_query->max_num_pages ) );
?>
<?php
// show all ads but make sure the sticky featured ads don't show up first
$paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1;
query_posts( array( 'post_type' => APP_POST_TYPE, 'ignore_sticky_posts' => 1, 'paged' => $paged, 'meta_key' => 'cp_speciaal_lid', 'meta_value' => '') );
$total_pages = max( 1, absint( $wp_query->max_num_pages ) );
?>
There are currently 1 users browsing this thread. (0 members and 1 guests)