Results 1 to 3 of 3

Thread: Hide sold listings in dashboard

  1. #1
    Thread Starter
    Rookie CubeClerk's Avatar
    Join Date
    Jul 2010
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Hide sold listings in dashboard

    I want to hide the sold results in the dashboard when users click the sold button.

    I've figured the second query in the tpl-dashboard would do the trick; but I can't figure out how to join the meta info in there .. Can someone help me by adding " cp_ad_sold key = no " to the query - or is this not possible?

    I flagged the posts so when they are created they are set as cp_ad_sold = no; so the new listings should show up ... I just can't figure out where to join the custom fields...

    Here's the query:
    $sql = "SELECT ID, post_title, post_name, post_status, post_date "
    . "FROM $wpdb->posts "
    . "WHERE post_author = $userdata->ID AND post_type = 'ad_listing' "
    . "AND (post_status = 'publish' OR post_status = 'pending' OR post_status = 'draft') "
    . "AND $wpdb->posts.ID "
    . "ORDER BY ID DESC";

    Any help is appreciated!!

  2. #2
    Veteran bluecafe's Avatar
    Join Date
    Apr 2010
    Location
    Berlin
    Posts
    1,563
    Thanks
    58
    Thanked 359 Times in 273 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    Thread Starter
    Rookie CubeClerk's Avatar
    Join Date
    Jul 2010
    Posts
    5
    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. How users mark ads as sold (just hide?)
    By doctorcilantro in forum Report ClassiPress Bugs
    Replies: 1
    Last Post: October 27th, 2010, 04:17 PM
  2. How to HIDE Featured Listings TITLE NAME
    By tbase in forum ClassiPress General Discussion
    Replies: 3
    Last Post: August 23rd, 2010, 02:25 PM