Results 1 to 9 of 9

Thread: Dropdown custom field search

  1. #1
    Thread Starter
    Amateur romstutz's Avatar
    Join Date
    Mar 2011
    Location
    France
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Dropdown custom field search

    Hello,

    I am trying to create a multi criteria search for the searchbar.
    Right now you can select a category or a sub category form the default dropdown menu.
    What I want is to duplicate this dropdown menu and have it show a custom field, like region or state before you hit ok and generate a multi criteria request.

    I opened the "theme-searchbar.php" and copied:
    Code:
    <?php wp_dropdown_categories('show_option_all='.__('All Categories', 'appthemes').'&hierarchical='.get_option('cp_cat_hierarchy').'&hide_empty='.get_option('cp_cat_hide_empty').'&depth='.get_option('cp_search_depth').'&show_count='.get_option('cp_cat_count').'&pad_counts='.get_option('cp_cat_count').'&orderby=name&title_li=&use_desc_for_title=1&tab_index=2&name=scat&selected='.cp_get_search_catid().'&class=searchbar&taxonomy='.APP_TAX_CAT); ?>
    it creates a similar dropdown menu right next to it wich allows to actualy refine search.
    However I can't figure how to modify it to use a custom field. I tried changing the ID and tables, but with little success...

    I've read several of the tutorials and threads on this forum and I couldn't find what I was looking for. (or maybe I just didn't get it!)
    Anyway sorry if this question was asked before but I could really use some advices.

    How would you proceed with this piece of code.

    Thanks in advance!

  2. #2
    meloniq's Avatar
    Join Date
    May 2011
    Location
    Poland
    Posts
    1,079
    Thanks
    17
    Thanked 178 Times in 159 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Have Clipper website?! --> You need coupons importer!!!
    See available integrations with affiliate networks: Commission Factory, CJ Affiliate, Daisycon, Rakuten LinkShare, ShareASale, Tradedoubler, TradeTracker

    Payment gateways: Bitpay, Dotpay, PayU PL, Przelewy24, Skrill

    me @ AT || meloniq.net

  3. #3
    Thread Starter
    Amateur romstutz's Avatar
    Join Date
    Mar 2011
    Location
    France
    Posts
    10
    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
    theman's Avatar
    Join Date
    Sep 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  5. #5
    Thread Starter
    Amateur romstutz's Avatar
    Join Date
    Mar 2011
    Location
    France
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  6. #6
    Junior Member rdiasbarbosa's Avatar
    Join Date
    Jul 2011
    Location
    Brazil
    Posts
    44
    Thanks
    12
    Thanked 13 Times in 8 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  7. #7
    theman's Avatar
    Join Date
    Sep 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  8. #8
    Amateur fabioz's Avatar
    Join Date
    Aug 2011
    Location
    Russian Federation
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  9. #9
    Amateur mrjeremylaw's Avatar
    Join Date
    May 2013
    Location
    Belgium
    Posts
    12
    Thanks
    4
    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. Multiple Dropdown Custom Field Search Widget
    By jshgroup in forum ClassiPress General Discussion
    Replies: 2
    Last Post: May 13th, 2012, 11:05 AM
  2. Make "City" field in custom fields a dropdown menu
    By hyperion in forum Report ClassiPress Bugs
    Replies: 6
    Last Post: March 8th, 2012, 09:26 PM
  3. Multiply Select from custom dropdown field
    By mjjpack in forum Report ClassiPress Bugs
    Replies: 1
    Last Post: January 28th, 2012, 10:20 AM
  4. Using search plugin WP Custom Field Search
    By Unregistered in forum ClassiPress General Discussion
    Replies: 70
    Last Post: August 31st, 2011, 11:01 PM