Page 1 of 11 123 ... LastLast
Results 1 to 10 of 104

Thread: Filtered Search of custom fields via Modded plugin

  1. #1
    Thread Starter
    Veteran hugo's Avatar
    Join Date
    Aug 2010
    Location
    United Kingdom
    Posts
    310
    Thanks
    13
    Thanked 80 Times in 54 Posts

    Filtered Search of custom fields via Modded plugin

    Cant believe i spent a day and a half knee deep in codex when all i had to do was change half a dozen charachters in the wp-custom-fields-search plugin.

    This will now filter search via keywords and custom fields, due to what i had to do to it for styling it is no good as a sidebar widget (unless you want to re-style it for your sidebar)

    I wanted to search by:
    *keywords = textfield
    *City = dropdown (populated by cp_city custom field)
    *State = dropdown (populated by cp_state custom field)

    for using just one of the 3 filters it will return everything, ie: using city will return all of those cities.

    for using two (city and state) of the 3 filters it will filter posts and return all *city in *state

    For using all three it will return a 100% match of Keyword >> City >> State

    If you need the input textfield longer or smaller you can alter its width by going to line 343 in the plugins extra_search_fileds.php file and altering the inline styling px width

    For this to work at its best your chosen custom fields (except keywords) must be required fields on the ad listing form

    *Note: Please refer to post 6 for the corrected file.
    Last edited by jomarkosabel; March 3rd, 2011 at 07:47 AM.

  2. The Following 5 Users Say Thank You to hugo For This Useful Post:

    blabla (April 27th, 2011), fredhxc (June 8th, 2011), jkatalin (May 5th, 2011), mortalkombat (December 12th, 2017), waylandltd (June 1st, 2011)

  3. #2
    Thread Starter
    Veteran hugo's Avatar
    Join Date
    Aug 2010
    Location
    United Kingdom
    Posts
    310
    Thanks
    13
    Thanked 80 Times in 54 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. The Following User Says Thank You to hugo For This Useful Post:

    lausha (March 2nd, 2011)

  5. #3
    Thread Starter
    Veteran hugo's Avatar
    Join Date
    Aug 2010
    Location
    United Kingdom
    Posts
    310
    Thanks
    13
    Thanked 80 Times in 54 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  6. #4
    Veteran Fanatic's Avatar
    Join Date
    Jul 2010
    Location
    Canada
    Posts
    885
    Thanks
    309
    Thanked 57 Times in 51 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  7. #5
    Veteran Fanatic's Avatar
    Join Date
    Jul 2010
    Location
    Canada
    Posts
    885
    Thanks
    309
    Thanked 57 Times in 51 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  8. #6
    Thread Starter
    Veteran hugo's Avatar
    Join Date
    Aug 2010
    Location
    United Kingdom
    Posts
    310
    Thanks
    13
    Thanked 80 Times in 54 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Attached Files Attached Files

  9. #7
    Thread Starter
    Veteran hugo's Avatar
    Join Date
    Aug 2010
    Location
    United Kingdom
    Posts
    310
    Thanks
    13
    Thanked 80 Times in 54 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  10. #8
    Veteran doctorcilantro's Avatar
    Join Date
    Oct 2010
    Location
    Saudi Arabia
    Posts
    759
    Thanks
    2
    Thanked 26 Times in 16 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  11. #9
    Thread Starter
    Veteran hugo's Avatar
    Join Date
    Aug 2010
    Location
    United Kingdom
    Posts
    310
    Thanks
    13
    Thanked 80 Times in 54 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Last edited by hugo; March 3rd, 2011 at 09:01 AM. Reason: added screenies

  12. #10
    Veteran doctorcilantro's Avatar
    Join Date
    Oct 2010
    Location
    Saudi Arabia
    Posts
    759
    Thanks
    2
    Thanked 26 Times in 16 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Page 1 of 11 123 ... LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Using search plugin WP Custom Field Search
    By Unregistered in forum ClassiPress General Discussion
    Replies: 70
    Last Post: August 31st, 2011, 11:01 PM
  2. WordPress Custom Fields Plugin compatibility
    By malaka in forum Report ClassiPress Bugs
    Replies: 3
    Last Post: January 8th, 2011, 08:58 AM
  3. Search within filtered job list
    By acsepic in forum Report JobRoller Bugs
    Replies: 1
    Last Post: December 8th, 2010, 08:39 AM
  4. MODDED for "Custom" Custom Fields output
    By vienna in forum ClassiPress General Discussion
    Replies: 5
    Last Post: November 8th, 2010, 02:08 PM