WP Custom Fields Search 0.3
This is my search plugin for wordpress, designed to filter posts in a more structured way than the default wordpress search. Specifically it allows multiple form inputs to be configured to search different aspects of a post, i.e. one term could search the post content, one the post title and one could search a custom field associated with the post.
The blog admin is able to build a customised search form. It allows you to search by the standard post information and by custom fields and to choose what HTML form elements should be presented for each search field.
I originally developed this plugin for a client project. Basically the problem they had was that they were storing real estate data as wordpress posts with associated custom fields and they wanted to search for entries based on price, location and features which was not possible with the default wordpress search.
The plugin is now at point where I think it could be useful to other people although I’m aware that there are a lot of improvements that could be made. Please let me know if you have any suggestions or complaints and I will do my best to get them resolved.
You can download the plugin here.
System Requirements
I have tested with the following software versions, other versions may or may not work.
- PHP Versions 4.4.9 and 5.2.6
- Wordpress 2.5, 2.7 and 2.7 MU
Quick Start Guide
I will try to put more complete documentation together at some point but for now this is a quick start guide to building a search form.
- Install the plugin. Download it here unzip it in your wp-content/plugins folder, then activate it in the plugins > installed page of your wordpress admin site.
Method 1: Add the search as a sidebar widget
- Add the widget to the sidebar on which you want it to appear. Go to the appearance > widgets section of the admin page, in the list on the left find the widget “Custom Fields Search” and click the add button next to it. It should appear in the list on the right. Click save changes
- You should now have a basic search form on the front of your site, to customise this further read on to see how to reconfigure your fields.
Method 2: Add the search code directly into your template
- Go to the custom fields config page in your admin section, Settings > WP Custom Fields Search
- Copy the example PHP code from this page into your template file.
- You should now have a basic search form on the front of your site, to customise this further follow the instructions below for setting up fields.
Setting up the fields

Admin Screenshot
Each field has a number of settings which control the way the input appears to the user and the way the search is performed. Most of the settings are hidden when you first go to edit the widget and you will need to click the show/hide config button to get access to many of the parameters.
Label sets the label displayed next to the field, you can set this to whatever you want.
Data Type controls what type of data is being searched (i.e. what database table is being used). The standard options are “Post Field” for data such as post title and post content, from the standard wordpress post data, “Custom Field” for data from the custom fields, and “Category” to search on the categories a post is in.
Data Field makes a more specific selection from the data available. The drop down list should give some sensible options, or if you know the name of the database field you want to query you can type this in manually.
Widget controls what type of HTML input is created for the front end of the site. It should be fairly obvious what these do.
Some widgets will require extra options in the Widget Options field. At the moment this is just the drop down and radio button widgets which allow you to specify a list of values for the user to choose from. If you leave the options blank then they will be automatically populated with a list of all values currently in the database, this can be useful for fields like categories and tags, but is less useful for fields like title which would just generate an entry for every post in the blog. If you want to specify the values manually you can specify this as a comma separated list of values, ‘a,b,c’ for three options with values ‘a’, ‘b’ and ‘c’ respectively, or if you want to give ‘friendly’ labels to the user you can separate the value from the label using a colon as follows ‘a:Group A,b:Group B,c:Group C’.
The Compare field controls the way that the user input is compared to the data in the database. I would expect the most commonly used of these to be “equals” which requires an exact match between the user data and the database field (useful for category searches) and the “Words in” or “Phrase In” types which will search to see if the user input is a part of the data, rather than a full match, this is useful for things like searching the text of a post. The difference between ‘words’ and ‘phrase’ is that ‘words’ splits the input into a series of words and searches for these individually whereas ‘Phrase’ searches for all the words in sequence.
The “Less Than” and “More Than” comparisons ensure that the data is less than or more than the user input respectively. This is probably only relevant for numeric input but it can be used for strings as well and will search alphabetically. For numeric input it can help to also tick the “Numeric” checkbox as sometimes the database will be set up to compare numbers alphabetically (so that 10 is less than 2).
The “Range” comparison is a little more complicated and requires the user input to be of the form A-B to return results that are between A and B. This is primarily intended to be used for Drop-downs and radio buttons where the values can be set by the site administrator. If you specify the values for the dropdown like the following: “-10:Less Than 10,10-20:Between 10 and 20,20-:More than 20″, then the user will be presented with the options “Less Than 10″, “Betwen 10 and 20″ and “More than 20″ but the search will be done with the values “-10″,”10-20″ and “20-”. Again the numeric checkbox should be used for numeric data.
I hope that helps, please let me know if you have any trouble (or joy) with the plugin or if any of my instructions don’t make sense.
Using Presets
Presets are a new feature in version 0.3, they allow search forms to be configured separately from the sidebar widgets, the configured form doesn’t directly appear on the site but can be included in two ways.
Firstly, by copying and pasting the php code from the preset config page into a template file you can place a search form anywhere you want in your template.
Secondly, by using a preset as the basis for another search form. When setting up a search form you have the option of selecting one of the presets from a dropdown list. Selecting one will include all of the fields from this preset in your form.
Presets are configured in exactly the same way as the sidebar widget, you can find the presets in the “Settings > WP Custom Fields Search” section of your admin site.
Extending Custom Search
For developers, I’ve tried to build this in a modular way to allow extensions to be added, I will try to document this at some point in the future but if you can’t wait then the best places to get started would be to look at the filter ‘custom_search_get_classes’ in custom-search/custom-search.php and the Great Real Estate bridging code in custom-search/bridges/greatrealestate.php.
This plugin is at quite an early stage in development though so it is likely that future versions may not be compatible with the same extension interface and it is likely that any extensions will need altering when new versions are released..
Changelog
Since 0.2
- Various bug fixes
- Wordpress 2.5 compatibility
- Added in preset functionality
Since 0.1
- I’ve reworked the UI and added some more sensible default values, hopefully this should make it less daunting for new users.
- Fixed a few bugs.
- Added in textual descriptions of the search parameters (for themes which support this)
Category: Wordpress Plugins | Tags: custom fields, custom search, wordpress, wordpress plugin 90 comments »
March 24th, 2009 at 4:55 pm
Works great, thank you
March 26th, 2009 at 3:27 pm
Hi,
Thanks, great plugin that fits quite exactly my needs for the site I’m settiing up.
I’ve notice one surprising bug, though : once your plugin is activated, it makes it impossible to edit the theme with wordpress 2.7.1 theme editor :
The theme editor opens all right with the default file (usually style.css), but whenever you try do access another file (index.php, for instance), it stays on the default file :
basically, your plugin seems to interfere with
http://www.whateverthesiteis.com/wp-admin/theme-editor.php
and prevents theme-editor.php from taking into account the parameter
?file=/themes/theme_name/file.php&theme=theme_name
This can be worked around by de-activating it while editing the theme, and/or by editing it locally and uploading to the site once finished, but it’s still a little troublesome…
March 26th, 2009 at 3:32 pm
Quite logically, same problem with the wp-admin/plugin-editor.php
March 26th, 2009 at 4:01 pm
Thanks Florent, I hadn’t noticed that one. Seems I was polluting the global namespace which was confusing the file editing process.
I’ve put a new version up now, both on this page and on http://wordpress.org/extend/plugins/wp-custom-fields-search
Please let me know if that doesn’t fix it for you, or if you spot anything else.
Thanks again,
Don
March 26th, 2009 at 5:04 pm
Thanks,
The correction fixes it. Half an hour must be some kind of world record for plugin author reactivity… Many, many thanks !
April 1st, 2009 at 1:16 pm
Hi Don, thanks or your efforts on this. I have been doing some testing on my site with this plugin. I have one category which I want to search only. So I enabled two custom field drop downs (”Area” and “Menu”) and a category drop down with only value of “restaurants”.
I enabled a widget with these three parameters on the sidebar.
When I search with Area = ANY and Menu = ANY, the serach works by showing me all posts in category = “restaurants”.
When I search with Area = some value, AND/OR Menu = some value, I get the correct results ONLY WHEN I REMOVE THE CATEGORY dropdown.
I do not get ANY results when Area = some value, AND/OR Menu = some value, and category is set to restaurants.
Do you think this is a problem with a query or a setting on my side? I have verified that the custom fields are present and the same posts are classifed in the “restaurants” category.
The problem is that if I use the SEARCH with NO category set, and if a user does a search of Area = ANY and Menu = ANY, then they will get a list of ALL my posts in ALL categories which is not desired.
Thanks for any feedback. Apologies if this is not the right forum for support.
April 4th, 2009 at 5:26 am
dear sir
i finished isntall this script, but i have a problem.
error message :
Fatal error: Call to a member function Show() on a non-object in /home/sloki/user/h10562/sites/yop.web.id/www/wp-content/themes/hybrid/search.php on line 14
pls help me.
thanks
April 5th, 2009 at 9:28 pm
Great site this http://www.don-benjamin.co.uk and I am really pleased to see you have what I am actually looking for here and this this post is exactly what I am interested in. I shall be pleased to become a regular visitor
April 6th, 2009 at 8:08 am
The default Search for Wordpress really sucks and now this is some relief. I am gonna use this in some of my client sites
Thanks a lot. Let me see whats inside..
Arun Basil Lal
April 8th, 2009 at 11:38 pm
FANTASTIC!
April 25th, 2009 at 3:49 pm
Hi
This plug in looks good and Its has Great Moto , i am very happy with this , because i need search functionality for real estate project in word press. i configure this plugin success fully , but the thing when i select city value which is in the real estate database , instead of displaying results it will display like
” No posts found. Try a different search?Search for: ”
Key Words contains “hyderabad” this is displaying in text field.
please give me solution for this.
Thanks & Regards
Prakash
April 25th, 2009 at 4:20 pm
Prakash: How is the city value stored in the database? It looks like the search is being done on the main text and title of the post, is this where the city value should be? Or would it be in a custom field?
April 27th, 2009 at 8:39 am
Hi Don
Thanks For Reply , i explained u clearly how “custom search plug in” configure in my system
1.Installed “wp-custom-fields-search.0.3.9″ .
2.in Appearance => Widgets => Added “Custom Fields Search”
3. in configuration
1. search Title : Proerty Search
2. Use Preset : Proerty Search
3. Label : City
4. Data Type : Great Real Estate
5. Data Field : City
6. Widget : Drop Down
7. Compare : Words In
8. Numeric : uncheck
9.Widget Config : empty.
in this way i configured in my system and save changes.
my real estate database settings like this
Table name : wp_greatrealestate_listings
fields like id,pageid,address,city,state,postcode,mlsid,status,blurb,bedrooms,bathrooms,
…
please guide me how to reach this functionality.
Thanks & Regards
Prakash
April 28th, 2009 at 10:50 am
Works great, fantastic plugin.
Only a suggest: when choose category as data type, add an option to retrieve a particular category (e.g. category called ‘news’ or with the id ‘1′).
Nice work, man.
April 28th, 2009 at 11:29 am
A few people have asked for this functionality, so I’m considering putting in a better interface for it.
For now though, if you write the categories you want to include as a comma separated list into the “DropDown Options” field then only these categories will be displayed.
April 30th, 2009 at 12:42 pm
Heya, I am building a site and found your plugin is just what I needed.
Only problem is that I selected the Category and Tag dropdown menu’s but it is not showing all the categoies or tags… Please advise.
http://dmrguide.com
May 6th, 2009 at 11:18 am
Hi Terry,
Apologies for taking so long to get back to you, somehow your comment got filtered out as spam. Did you have any luck getting it working? I checked the link and there seem to be some options in the dropdowns now.
If not, the only thing i could suggest is that the plugin attempts to only show categories which have published posts in them so on a new site with no posts it will give no options in the category/tags dropdowns.
Let me know if this is still an issue,
Thanks
Don
May 8th, 2009 at 11:58 am
Hi Don,
thanks for the wonderful plugin. I tried it on one of my sites and it worked quick and correct on all posts.
Can I search pages as well? When I tried this I did not succeed. Can you help me?
Greetings from Germany sends
C. Michael Mette
May 11th, 2009 at 7:42 pm
Is there a way I can insert this widget into a theme? What code should I utilize to do that?
Great plugin btw. It is getting popular everyday.
May 12th, 2009 at 4:11 pm
Hi redsoxmaniac, yes if you follow method 2 from the quick start guide above this should give you some php code to copy into your theme.
May 26th, 2009 at 11:54 pm
Hi Don,
Great plugin!
I just have one question, how do I change the text color and style for the search category labels? For some reason it is not matching the rest of my site. I tried going into the php code to find it, but couldn’t figure out where it pulls the colors from. Can you please help.
Thanks,
Alec
July 2nd, 2009 at 2:16 am
Hi, is it possible that the newest version of Wordpress doesnt work with this plugin? I always get the following problem :
http://www.orientteppich.ag/?search-class=DB_CustomSearch_Widget-db_customsearch_widget&widget_number=preset-default&cs-TeppichNr-0=12345&search=Search
Results for ”
What have you done now?!
Sorry, your search did not return any results. Please try again!
Thanks for any help.
July 4th, 2009 at 6:48 am
Does anyone know if special characters ($) and commas (in custom fields) or special characters ($) in the widget “Drop Down Options” field will cause the form to not work? I am unable to get any posts to display when using the form.
Any help you can provide would be greatly appreciated. Thank you!
July 9th, 2009 at 11:09 am
Hello
I have one small problem. I don’t know why but anytime I add new Preset and when I add it (php with the preset-x) to the page it renders only the submit button not more.
The first default one is fine, but all new presets are like that.
It even misses the html code and it’s functionality. All HTML in div searchform-params are gone.
thx 2046
July 10th, 2009 at 10:10 am
anather issue
widget setup
data type: Custom Field
data field: all
widget: text input
compare: phrase in
it’s workless, it cannot find anything. If I choose in the “data field” one of the existing “custom filed” it does though.
(I thought the “all” parameter could be the problem, but in the case of categories works perfect, so i suggest it’s fine…btw what if the custom filed or category has a name “all” which is not my case? I suggest you to change it in to empty parameter, but it’s up to you indeed)
July 10th, 2009 at 10:26 am
Hamed, I’ve put together an alternative build of the plugin here: http://www.don-benjamin.co.uk/files/wp-custom-search-categories.zip , does this help at all?
July 10th, 2009 at 10:29 am
2046, The first issue may be the same reported by James on another post, I will look into this shortly, but apparently the example code doesn’t work unless you remove the preset- text so where the code example shows “preset-1″ you would use just “1″
The all option is only implemented for post fields, it is a shorthand for specifying title, body, author, keywords etc. It was never intended to work for custom fields, although now that you mention it, this probably would be useful functionality, I will put this on my todo list.
Thanks,
Don
July 10th, 2009 at 12:02 pm
[...] There is more complete (although slightly out of date) documentation for the plugin here [...]
July 10th, 2009 at 2:50 pm
thanks Don,
How much work is to implement function “all” for custom fields?
I can do what I want even with the setup as it is now, but…
btw have you thought of the AND OR and other operators? If we collect the search widgets it always works as AND operator, Might be useful to have a operator between them
anyway thanks for the nice plugin, it saves us lot of time to do our things. You can be sure you’ll see few bugs on your PP soon.
thx 2046
, please delete it , or do what ever you want.. )
(I’m sorry man, I have posted this text incidentally under the post above
July 29th, 2009 at 1:20 pm
Hi, just a question as i’d love to use this plugin. Whatever I try, i keep getting: “Sorry, but you are looking for something that isn’t here.”
(downloaded your plugin today)
Last try was:
data type – custom field
data field – picked one from pre populated list
widget – drop down
compare – words in
It does what it’s supposed to do I guess, I go to the frontend, pick one of the options in the widget, hit search, and get
Not Found
Sorry, but you are looking for something that isn’t here.
What can I do to make it work?
The url it produces looks like this:
http://www.mywebsite.com/wordpress/?search-class=DB_CustomSearch_Widget-db_customsearch_widget&widget_number=2&cs-Gepubliceerd_in-0=esta&search=Search
Thanks!
August 6th, 2009 at 4:54 pm
Hi, This is a great plugin. Is there a facility to not take a menu into effect if nothing is selected. For Example.
If I had ‘Select,Cottage,House,Farmhouse’ within the Drop Down options.
(I have ‘Select’ first as that is displayed to prompt the visitor to select something.)
If the post was completed correctly and say had ‘Cottage’ in the custom field, the plugin would obviously not display it.
How can I set it to ignore a menu item if nothing is selected or if the term is Select as in my case.
Thanks Jono
August 6th, 2009 at 5:07 pm
Also, Sorry I forgot to add.
Is there a way to reset the form?
Bug: I am using Wordpress 2.8.3 and when including radio buttons lots of extra information and extra radio buttons are included.
Like:
1
Category
CustomFieldJoiner
cat_value
RadioButtonField
EqualComparison
I realise the plugin hasn’t been tested in 2.8.x versions but thought I’d mention it.
The only other plugins installed ere Akismet and Maintenance Mode which I doubt would effect anything.
Thanks Jono.
October 8th, 2009 at 4:01 am
should i be able to filter the search by category using this plugin?
when i select “category” from the datatype, i expected to see a list of my categories in the datafields but nothing comes up??
Am i missing something? thanks!
October 8th, 2009 at 4:07 am
Bar that last comment, have figured out i need to use widget config
October 13th, 2009 at 6:49 pm
Hello.
We were using version 0.3.10 with full joy.
But now there is one problem. We now use sticky posts for a slideshow on frontpage. And since then the custom search shows the stickied posts before the search results. Even if they do not match the search phrase.
Is there a chance to resolve this?
Many thanks,
j. alexander
October 16th, 2009 at 2:11 pm
Hi Don.
Thanks for a great plugin!
It works perfect for posts, but could you please tell me how to search in static pages. I also have the custom fields there and I would like the plugin works for them.
November 18th, 2009 at 6:59 pm
Hey Don,
Thanks a lot for this great pluggin,
But as say Ameise, how can you do to desappear stickied posts before the search results ?
Many Thanks,
Gabrielle
December 8th, 2009 at 5:59 am
Hi Don,
Thanks a lot for this beautiful plugin. (Donation:)
Can u you share to me, how to show only parent category in the drop down list (hide all child category) .
Hope will hear you soon. arusbeta[at]gmail.com
Thanks Don,
Hery
December 28th, 2009 at 5:57 pm
Beautiful!
Thank you.
January 2nd, 2010 at 9:45 am
This is an excellent plugin. Thanks.
Im having a bit of trouble getting the results of the custom field search to appear in a specific search page (different from the default I need the default to still display posts from News Category which it does fine). I am searching posts in the DATRIX category using the custom fields Cost, Time, Goal. These results appear fine in the default search template but I want to force the results to datrix page (which has the search widget in the sidebar). Any help would be greatly appreciated.
January 19th, 2010 at 2:44 am
Hi Don,
In this comment that you made in April – http://www.don-benjamin.co.uk/projects/foss/wp-plugins/wp-custom-fields-search-03/#comment-540 – You mention the use of the “Dropdown Options” field to limit the categories in WP Custom Fields Search.
I just tried using this feature, but when I put in a comma-separated list of category IDs, in the form, the category IDs are listed as options instead of the category names.
Am I doing something wrong?
January 19th, 2010 at 2:49 am
Okay, please excuse my ignorance!
My answer can be found here:
http://wordpress.org/extend/plugins/wp-custom-fields-search/other_notes/
Too bad I have a ton of categories to label
April 11th, 2010 at 7:28 am
I need to modify this pluin so that I can submit multiple entries at once to the search. I am using the plugin for a real estate website. The current search form allows users to search for houses by selecting a single neighborhood from a dropdown menu. Instead of a dropdown menu, I would like to use a list of checkboxes so that the the user can search for houses in multiple neighborhoods at one time. I have converted all of the dropdown menu items into checkboxes on the HTML side but the PHP script only searches for houses in the last checkbox selected. For example, if I selected: ‘Dallas’ ‘Boston’ ‘New York’ the search engine will only search for houses in New York.
Im not asking you to rewrite the plugin for me or anything (although doing so would make you my god and possibly move me to donate), but if you could just give me some quick pointers as to what I will need to modify to create this kind of functionality, I would really appreciate it. Thanks!
April 13th, 2010 at 1:59 am
Hi Don,
Firstly, thanks for this great plugins. I’ve one problem, how to show specific category list for dropdown menu? Looking forward to your answer. Thanks again
April 14th, 2010 at 1:12 am
Great plugin!
How does one modify how the results are displayed? For example, i just want headlines/titles to be displayed not full posts or teasers.
Thanks
May 19th, 2010 at 8:33 am
Has anyone found a way to customize the search results?
May 24th, 2010 at 10:45 am
Hey Guys, Has anyone noticed that this won’t work in IE8. Just returns a ‘nothing found’ message. I’m using a simple text field and copied the code into my template. It works in IE7/FF but not IE8. Any ideas?
June 14th, 2010 at 3:43 pm
Can any body tell where I can find a plugin to add more fields into post area?
June 25th, 2010 at 5:22 pm
Hi,
The form’s working great, thanks for such an easy implementation! The only problem I’m having is with a “browse by category” dropdown– I have special entities (nothing too special; an &) in some of my category names, which is being rendered in the dropdown as its iso-friendly “&”
I tried adding accept-charset” into the tag in wp-custom-fields-search-form.php, but that doesn’t change anything. My template has the character set at utf-8, so there’s no problem there. And the category names render fine when elsewhere on the page. Any ideas?
July 13th, 2010 at 6:46 am
Chanel Vogue you will love it
July 19th, 2010 at 6:53 pm
Please Help!
The module don’t show all my custom fields when I’m creating a new form.
How can I fix this?
Thanks
July 19th, 2010 at 7:13 pm
Sorry. It’s my fault.
August 28th, 2010 at 12:02 am
my theme is not support widgets.
How do by code I use this plugin?
What code do I use the theme?
September 16th, 2010 at 2:32 pm
RE: Ameise , RE: Gabrielle
I had the same problem as You, with this sticky posts which appear in search results even if they do not match the search phrase…
I wrote small solution on my blog if You still looking for it:
http://blog.meloniq.net/2010/09/16/fix-wp-custom-fields-search-sticky-posts/
November 10th, 2010 at 6:29 am
Really a wonderful plugin!
Just i a little css bug that i cannot reach to find: in the front page the wp-custom-field-search-widget include the first next widget inside the widget frame. i clip fixed this adding a blank text widget without title nor content and thats worked to me. I don’t explain why it didn’t reported before.
Second nice feature to add (i only hard-coded it) is the option to specify custom post type to search in
Thanks for your efforts, best regards, pescadito
November 22nd, 2010 at 5:02 pm
Hey Don,
This is a great plugin that is very beneficial to the website that we are putting together. My only question is whether or not there is a way to make the results page only show links to pages. I’m using it to search for static pages and the results page shows the full content of each page in the results list.
This would be quite troublesome if there were to be twenty different results that showed up at a visitor’s inquiry.
Melissa
December 30th, 2010 at 10:09 pm
Is there a way to have the results sorted into alphabetical order ?
I am using WordPress 2.9.2 and WordPress 3.0.1, (2 sites) and the plugin works, but not sure if it should be sorting or not.
January 7th, 2011 at 2:22 pm
Hello, How are you?
Thanks for this plugin!
How Can I change The Text that Says ANY in drop Down Menu?
Thanks.
March 10th, 2011 at 10:54 pm
Can someone help me to make the “WP Custom Fields Search” working with “WPML Multilanguage” Plugin?
April 14th, 2011 at 3:34 am
Hi there. Firstly, thanks for all your hard work!
Is there a way to display the search results in a table? This would be fantastic!
I”m sorry if this has already been asked, but I can’t find it anywhere.
Thanks,
Jason
May 17th, 2011 at 11:30 am
Hello,
I’m trying to translate your plug-in. So far I’ve found the “ANY” value on your code and replaced it with the appropriate value. Now I’m trying to change the text on the submit button but I’m having a harder time finding it. Maybe you should considering creating a separate options file to easily change those values or include options on the plug-in’s settings to change it there.
Thank you!
MACC
July 12th, 2011 at 9:20 am
Hello and Thanks for this,
What I would recommend to add, if it does not already have the feature, is the possibility to exclude some categories from any search presets or to tell it to search only one within cat, instead of entering categories as meta keys and values to go around it from a php beginner’s point of view.
And also enable easy association of search templates with each search presets…
cheers
July 12th, 2011 at 10:01 am
As per the categories inclusion/exclusion issue noted above, I found the way around it, most probably talked of elsewhere already.
So, if you guys want your form preset to search into a specific category without having the category drop down:
Data type: Category
Widget: Hidden Constant
Compare: Equals
Constant Value: “the Name of the Category to search”
July 26th, 2011 at 6:13 pm
hi
thanks for the great work it’s an amazing plugin which helped me a lot in moving from joomla to wordpress.
i noticed one thing: when you set a static page as home page in your blog the plugin doesn’t seem to work anymore
hopefully this could be fixed in some way
August 22nd, 2011 at 11:01 pm
Great!
Is there a way to add a checkbox-input?
Thanks
September 8th, 2011 at 4:52 pm
Congratulations Don.
I have found a solution to make alphabetical search.
You have to add this code:
… inside the search.php of your current Theme.
The position of the code is before “the loop”. I put here literally the code of my search.php:
…
<?php
if(have_posts()) { …
September 8th, 2011 at 4:53 pm
—?php query_posts(’orderby=title&order=ASC’); ?—
The web cant show code. I write with out the sign of open php and close
October 1st, 2011 at 2:16 pm
http://www.etractari.ro —?php query_posts(’orderby=title&order=ASC’); ?—
try here dont work
November 4th, 2011 at 2:36 pm
I am extremely impressed with your writing abilities and also with the format on your blog. Is that this a paid subject or did you modify it yourself? Anyway keep up the nice quality writing, it is uncommon to look a nice weblog like this one these days..
January 15th, 2012 at 10:42 pm
I am wondering if there is a way to when someone selects a country that is I can program it to then have a sub category automatically populate the states within that country. Or if someone selects a state, that it then automatically populates the next search drop down to show the cities within that state or area. Is there a way to do that?
July 6th, 2012 at 2:05 pm
Bilety lotnicze z Warszawy
July 10th, 2012 at 4:09 pm
Wizer
August 1st, 2012 at 12:35 am
www wizzair ro
August 17th, 2012 at 9:11 am
Blue Air low cost
August 17th, 2012 at 12:58 pm
hi there
plugin is great… I am using plugin to search bedrooms, bathrooms and sleeps for a property website, but when bedrooms is less then or equal to 3 the form is not working… please help me out…
August 23rd, 2012 at 10:21 am
Click here to search cheapest flights tickets and reserved it fast.
November 3rd, 2012 at 9:49 am
Hi there! Do you know if they make any plugins to assist with Search Engine Optimization?
I’m trying to get my blog to rank for some targeted keywords but I’m not seeing very
good success. If you know of any please share.
Kudos!
November 6th, 2012 at 2:38 pm
ÿþ
December 3rd, 2012 at 7:07 pm
Just figured out how to get custom post types working:
http://wordpress.org/support/topic/plugin-wp-custom-fields-search-not-searching-custom-post-types
But now, I have the issue of how the plugin handles boolean searches. I need it to do a search using the “OR” operator instead of “AND.” The problem is, in order to get any results, there has to be an exact combination of radios and dropdowns selected instead of just displaying all results that contain any of the selected items.
How can I modify the plugin to support this?
December 3rd, 2012 at 8:28 pm
WP Custom Fields Search is a fantastic plugin, we need to keep it alive!
but because https://wordpress.org/support/topic/plugin-wp-custom-fields-search-not-searching-custom-post-types?replies=8 was closed,
i add my quater here:
for WP Custom Fields Search work with custom post type, you need add this plugins:
——————————————————–
best regards,
pescadito
December 3rd, 2012 at 8:39 pm
i think this plugin is un-supported and all fork to add some feature (as ‘OR’ conditional or another) will be welcomed.
please if you do, leave a link here
December 3rd, 2012 at 8:43 pm
something was wrong when i submit comment number 80,
please refer to
- https://wordpress.org/support/topic/wp-custom-fields-search-not-searching-custom-post-types?replies=1
February 20th, 2013 at 1:49 pm
Hi Don, thanks for the Plugin. This ist super perfect for me an my site.
Thanks Greetings Rick
March 5th, 2013 at 8:06 pm
Thanks for any other informative blog. The place else may I get that kind of info written in such an ideal approach? I have a mission that I’m simply now operating on, and I’ve been on the look out for such info.
April 17th, 2013 at 11:45 am
Thanks for sharing your thoughts. I really appreciate your
efforts and I will be waiting for your next write
ups thank you once again.
April 19th, 2013 at 10:14 am
Hi,
I am getting a problem with custom field search.
only one result getting every time .tried with every mode of search like Custom post type tile, custom field ..any help for this..?
May 2nd, 2013 at 10:11 pm
Admiring the time and effort you put into your site and
in depth information you offer. It’s nice to come across a blog every once in a while that isn’t
the same old rehashed information. Excellent read!
I’ve saved your site and I’m including your RSS feeds to my Google account.
May 3rd, 2013 at 12:10 am
CLICK HERE NOW Learn More >> GOLD COINS, SILVER COINS. So it’s not worth lugging bottles up to your apartment, because the apartment taps are a good source of water. We cannot fulfill any desire and even if we are able to fulfill one desire then 1000 news desire will come in our mind by that time.
my web site; effortless english
May 12th, 2013 at 4:31 am
This is my first time visit at here and i am actually pleassant to read
everthing at alone place.
May 16th, 2013 at 3:45 am
Hi I use custom fields search plugin, it helps me a lot.
I have a problem is the following, I have a category field that was created by the plugin Advanced custom field, and I want to use this field to search posts, I created a lookup field through the plugin custom search field, select it to type as the data type: custom field and the date field the field that corresponds to my categories, so far all right, the problem is that the site in the search field shows the id of the categories instead of showing the name of the category.
I hope to answer, thank you very much.