Results 1 to 5 of 5

Thread: Both Sold & Special ads

  1. #1
    Thread Starter
    henkboersema's Avatar
    Join Date
    Mar 2014
    Location
    Netherlands
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Both Sold & Special ads

    Hello everyone!

    I have a special TAB on my homepage which only shows "Sold" ads. Code:

    tlp-ads-home.php
    PHP Code:
    <?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 max1absint$wp_query->max_num_pages ) );
        
    ?>
    And I added a new TAB (4) for "special" items. It's a custom field with a "Yes" and a "No" and it only shows all the "Yes" ads.

    Code:
    PHP Code:
    <?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 max1absint$wp_query->max_num_pages ) );
    ?>
    So far so good!!

    No I have the following problem:

    In the fourth TAB I want to show all the "special" items just like in the example above BUT without the "special" items which are Sold...

    Anyone?

  2. #2
    Thread Starter
    henkboersema's Avatar
    Join Date
    Mar 2014
    Location
    Netherlands
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    Thread Starter
    henkboersema's Avatar
    Join Date
    Mar 2014
    Location
    Netherlands
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    Veteran demonlee's Avatar
    Join Date
    Mar 2011
    Location
    Antas, Spain
    Posts
    574
    Thanks
    6
    Thanked 51 Times in 46 Posts

    Spelling Error

    You must be an AppThemes customer and logged in to view this response. Join today!
    Demon- I shoot People
    www.demonlee.com Photography Website
    www.seemeadvert.co.uk Classipress Website
    www.imdb.me.com/demonlee Film

  5. #5
    Thread Starter
    henkboersema's Avatar
    Join Date
    Mar 2014
    Location
    Netherlands
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. special ads
    By toniosbh in forum ClassiPress General Discussion
    Replies: 2
    Last Post: March 4th, 2014, 11:15 AM
  2. 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
  3. 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
  4. Mark as Sold not showing "Sold" tag on ads
    By ramystyle in forum Report ClassiPress Bugs
    Replies: 5
    Last Post: September 21st, 2011, 02:17 PM
  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