Results 1 to 2 of 2

Thread: Help adding categories to CP search function

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

    Help adding categories to CP search function

    Can anyone help with this?

    I would like to edit the CP search function to look in categories.
    In function "custom_search_where($where)" in theme functions, I have added:

    $query .= " AND ($wpdb->term_taxonomy.taxonomy = 'category')";
    $query .= " AND ($wpdb->term_taxonomy.term_id IN(5,20))";

    It isn't working yet - can anyone help, or point me in the right direction?

  2. #2
    Thread Starter
    Rookie dmoroney'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. Mod for adding drop down for cities search function
    By mlanghorst in forum ClassiPress General Discussion
    Replies: 32
    Last Post: October 22nd, 2013, 06:52 PM
  2. Local Search Function?
    By jbperkins in forum ClassiPress General Discussion
    Replies: 1
    Last Post: November 13th, 2009, 04:23 PM