Results 1 to 5 of 5

Thread: Hiding Sold Ads

  1. #1
    Thread Starter
    Senior Member matt9250's Avatar
    Join Date
    Jan 2011
    Location
    Texas
    Posts
    180
    Thanks
    19
    Thanked 5 Times in 5 Posts

    Hiding Sold Ads

    Trying to hide sold ads on the home page and in the loop for categories. The below code used to do the trick on the home page but I guess the last CP update changed things around.

    Code:
    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/ ).
    I'm doing a directory listing style on home page so that would only be updating the ad count but on the loop-ad_listing.php is where I think the change needs to be made for the results loop? On this page is, this where I might be able to hide the sold ads? And if so, any idea what the code would be?

    Code:
    <?php while ( have_posts() ) : the_post(); ?>
    
    		<?php appthemes_before_post(); ?>
    
    		<?php get_template_part( 'content', get_post_type() ); ?>
    
    		<?php appthemes_after_post(); ?>
    
    	<?php endwhile; ?>
    Thanks so much for any help.

  2. #2
    samcy's Avatar
    Join Date
    Mar 2012
    Location
    Germany
    Posts
    12,098
    Thanks
    121
    Thanked 1,756 Times in 1,442 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Rolf Hassel (Samcy)

  3. #3
    Thread Starter
    Senior Member matt9250's Avatar
    Join Date
    Jan 2011
    Location
    Texas
    Posts
    180
    Thanks
    19
    Thanked 5 Times in 5 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    Thread Starter
    Senior Member matt9250's Avatar
    Join Date
    Jan 2011
    Location
    Texas
    Posts
    180
    Thanks
    19
    Thanked 5 Times in 5 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  5. #5
    talent's Avatar
    Join Date
    Jul 2011
    Location
    London UK
    Posts
    3,497
    Thanks
    75
    Thanked 553 Times in 502 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    $function ('CUSTOMIZATION'); } else { .DESIGN { display: awesome; }
    If you require any additional functionality or design customization, just ask. Afterall... anything is possible! However, I may not know how to implement your particular request, but if you don't ask, you don't get

    If you build it, they will come...


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. V 3.3 Help required for showing sold tag on sold items
    By ezsolutionspk in forum ClassiPress General Discussion
    Replies: 4
    Last Post: January 1st, 2014, 03:09 AM
  2. Sold stamp, .gif, mark as sold, version 3.1.6 - not working
    By kinski in forum ClassiPress General Discussion
    Replies: 1
    Last Post: February 13th, 2012, 08:23 PM
  3. Hiding SOLD items from the home page.
    By ejikoala in forum Report ClassiPress Bugs
    Replies: 1
    Last Post: January 7th, 2012, 01:35 AM
  4. Hiding SOLD items from the home page.
    By ejikoala in forum ClassiPress General Discussion
    Replies: 1
    Last Post: January 7th, 2012, 01:35 AM
  5. If user makes sold ad "un-sold", the status is still sold
    By teddyjohan in forum Report ClassiPress Bugs
    Replies: 12
    Last Post: June 7th, 2011, 03:48 PM