query_posts( array( 'post_type' => APP_POST_TYPE, 'ignore_sticky_posts' => 1, 'paged' => $paged, 'meta_key' => 'cp_ad_sold', 'meta_compare' => 'NOT EXISTS' ) ); (from dadumchu http://forums.appthemes.com/classipress-general-discussion/removing-sold-items-home-page-70615/ ).
<?php while ( have_posts() ) : the_post(); ?> <?php appthemes_before_post(); ?> <?php get_template_part( 'content', get_post_type() ); ?> <?php appthemes_after_post(); ?> <?php endwhile; ?>
There are currently 1 users browsing this thread. (0 members and 1 guests)