Support has been upgraded!
The Support Forum is closed. Not to worry! Providing the top quality support you expect and we're known for will continue! We're not ending support, just changing where you submit requests. This will provide you with the best experience possible.
Have you purchased an addon for Connections such as one of our premium templates or extensions with a valid license and you need help?
Please open a Support Ticket in your user account.
Are you using the free Connections plugin? Don't worry, you are still very important to us! We are still providing you with the same high quality support that we're known for.
Please open a new support topic in the WordPress support forums for Connections.
01/02/2014 at 12:26 am #276308Dustin CoreyParticipant
I’m trying to get Connections setup for my church directory. I have been reading through the forms and picking up on the limitations that come with the “family” listings.
I feel like I’m close on a work-around, but I’m still having some trouble. It seems like one of these scenarios should work. Let’s walk through them and see if anyone has some ideas. This is long, but I hope everyone can follow along easily.
–Mix of family and individual listings–
I have two categories, “Everybody” and “Member Directory”.
All individual listings are part of the “Everybody” category.
All family listings and individuals without family are added to “Member Directory”.
John Doe (Individual, “Everybody”)
Jane Doe (Individual, “Everybody”)
Doe (Family, “Member Directory”)
Sam Smith(Individual, “Everybody” & “Member Directory”)
My shortcode can be [ Connections category=”Member Directory”] which displays the directory properly (all people are accounted for only once).
My problem comes when trying to search. If I search for Sam, I find him; If I search for Jane, no results.
A. Why doesn’t the search include the first names under relationships of family listings? When searching for Jane, I would expect the Doe family listing to be returned.
Or B. Can I display Category=”Member Directory” but search on all categories?
This could return Jane’s individual listing.
(Note, this would need to be hidden from the front-end. Multiple category selects would not make sense to the users)
–All listings have a family–
John Doe (Individual, “Member Directory”)
Jane Doe (Individual, “Member Directory”)
Doe (Family, “Member Directory”)
Sam Smith(Individual, “Member Directory”)
Smith (Family, “Member Directory”)
I can now use the family listing shortcode [connections show_family=true].
However, now I can’t search for Sam or Jane.
Why aren’t first names searchable when using show_family?
Thanks so much!
Dustin01/03/2014 at 10:12 am #276381
Ok, I read this a few times and if I got it right, its the same issue for both scenarios … the field that stores the family relationships is not searched at all. The technical reason for why not is that that field stores the relationships as a serialized array which is not easily searched at the database level. The only way I could think of doing this would be to first query all families, only the relationship field, unserialeze, loop thru search for matches. The problem with doing that would be is it is not scalable. At
x-number, it just would work.
Searching between category when limited at the shortcode level just won’t work. Doing that would break everyone’s directory who relies on that category separation to create multiple directories.
With all that said, I not able to come up with anything that can be done easily to get what you want … the closest would be to create a custom link to you directory page that points to the “Member Directory” category like so:
xequals the category ID number of the “Member Directory” category.
You would then have to make one edit to a core PHP file in Connections so searches wouldn’t be limited to the “Member Directory” category. You would delete this line.
I think that would get you really close to a working solution. The problem is you would then have to delete that same line upon updates to Connections.
I hope that helps.01/03/2014 at 6:43 pm #276412Dustin CoreyGuest
Yes, the two scenarios are similar, I read in some of the other topics that a family for each individual might help things.
I used that URL and removed the php line and am still getting “no results” when searching for individuals first names that are part of a family.
I did get my expected results when playing around with this url:
Cat 2 = “Member Directory”
Cat 3 = “Everyone”
But wouldn’t know how that could be implemented in my situation.
Any other ideas?01/04/2014 at 9:21 am #276432
Did you remove the shortcode category option? Which template and version are your using? This past week I’ve updated nearly all of them. One update was how categories selection was handled. Try updating, it can be downloaded via your Purchase History.03/29/2015 at 12:36 pm #329953Dustin CoreyParticipant
After updating to the lastest version (8.2.3) this walk-around isn’t working.
Family results are not being returned when searching for first name.
I re-removed the line from the template parts file since it was upgraded, but still not having any luck.
Deleted this line:
$searchValue = ( get_query_var(‘cn-s’) ) ? get_query_var(‘cn-s’) : ”;
Dustin03/29/2015 at 3:37 pm #329956
I read the thread a few times… I don’t see a working solution being mentioned so I’m at a loss as what to suggest.
The closest I see is this URL:
And removing the line Of code I mentioned…
Can you let me know what solution you ended up using?
You cannot reply to this support topic. Please open your own support topic.