Forums › Forums › Search & Filter Pro › Search only finds first post meta value, also checkbox issues
Tagged: checkbox, custom fields, meta data
- This topic has 7 replies, 2 voices, and was last updated 9 years ago by Ross.
-
Anonymous(Private) November 8, 2015 at 7:43 pm #29153
I have been using S&F for over a year with great results. I have just upgraded to the latest version and upon doing so I noticed some issues that I hadn’t noticed previously. I have a complex search form (located in a page sidebar) which includes some post meta fields. You can find the search on the right hand side of the following page… http://www.horsingaroundvictoria.com/eat/. The problem is that if I use multiple instances of the same custom field in a single post only the data found in the first instance will be returned by the Search. For example if I place the value Chinese” in the first instance of the “Region” custom field in my post and the value “Indian” in the second instance of the “Region” custom field then S&F will only “find” the post when I set my search parameter to Chinese. If I serach for Indian the post does not return. Is there a way around this? I have tried everything from re-building the Search form to re-entering meta data in posts, etc. I have tried this across many posts and with different custom fields and the behaviour is 100% consistent.
I have a second problem which is that the checkboxes in my Search form don’t awlays appear before the item they reference. The checkbox may appear on the line before the value, or they may appear on the line after depending on how the spacing works out. I’m almost positive they lined up properly before I upgraded. I know that I may have to do some tweaking to make some of the terms shorter but is there a way in general to make the boxes “stick” to the terms they are associated with?
Thanks for your help, and I apologize for my total lack of coding knowledge. I am one of those awful “plug it in and see if it works” types.Ross Moderator(Private) November 9, 2015 at 12:15 pm #29204Hey Steve
This is fixed in a release coming out later on today 🙂
Thanks
Ross Moderator(Private) November 10, 2015 at 5:39 pm #29420Hi Steve
This fixes the first issue.
The second point is really a CSS issue – the html markup of the form had to change slightly to accomodate certain features which just meant putting the checkbox input outside of its label, rather than nested.
I took a quick look and quickly realised that issue is quite simple to fix.
Just add this CSS to your themes css file:
.searchandfilter ul li li { display: block !important; }
Thanks
Anonymous(Private) November 11, 2015 at 7:32 pm #29537Thanks very much Ross, the code you provided to fix the misaligned checkboxes worked perfectly. Very much appreciated.
I know this is probably a dumb question but how do I upgrade to the latest version of S&F. My wordpress plug-ins page shows that I am running 2.02 and doesn’t show any upgrades available. I clicked “View Details” next to the S&F plug-in, and then clicked “Install Update Now” from the S&F dialogue box but nothing happened. Is 2.02 already the latest version? If so the meta data search problem is still there.
Please help if you can. Thanks, Steve
Ross Moderator(Private) November 11, 2015 at 8:00 pm #295492.0.3 is the latest version.
Check here – its probably something to do with activating your license:
http://www.designsandcode.com/documentation/search-filter-pro/getting-started/#Automatic_Updates
Alternatively you can redownload from your account: https://www.designsandcode.com/account/
Thanks
Anonymous(Private) November 11, 2015 at 11:53 pm #29589I have everything up to date and it is now working perfectly. Thank you so much for your speedy efforts in getting my awesome new and improved S&F search up and running! I really appreciate the time you took with me considering all you must have on your plate.
Steve Bailey -
AuthorPosts