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.
Premium Support
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.
Free Support
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.
Tagged: 8.36.1, configuration, family, home_id, shortcode
- This topic has 4 replies, 2 voices, and was last updated 4 years, 4 months ago by
Steven Zahm.
-
AuthorPosts
-
01/25/2019 at 5:43 pm #482680
Wes
GuestI’m looking to build a directory for a church and before I pay for the template to allow for searching, I want to confirm that I can make sure that results only display families and then users can click individuals to learn more.
01/25/2019 at 5:46 pm #482681Wes
GuestFor instance, I don’t want duplicate entries like above, but to be able to click members off of family, thanks!
01/28/2019 at 12:42 pm #482854Steven Zahm
Keymaster@ Wes
Set the list type to
family
on your existing directory page.Create a second page. The name is not important, but I recommend giving it a page name of “Individual”. Set the Page Parent to the current directory page. In the page content use just the
[connections]
shortcode, no options. Take note of the page ID assigned by WordPress. This can be found in the browser address bar. The page ID will only be given after you save the page.Edit the original directory page and set the home_id shortcode option to the new page ID. Your shortcode should look like this:
[connections list_type="family" home_id=X]
X
equals the page ID of the new page.After you save the change, take note of the page ID.
Now edit the new page and update the shortcode so it looks like this:
[connections home_id="Y"]
Y
equal the original directory page ID.On your sites menus/nav. Make sure to link to only the original directory page.
Now when you click on a family member name, it resolve to the new page showing their details. And because the directory on the original page is limited to the family type, it will display only families and not the individual entries linked to a family.
The one downside is that individuals (who are not part of a family) have to be added as a family so they show up in the directory.
Hope this helps!
01/28/2019 at 6:32 pm #482931Wes
GuestAwesome, thanks!
One more question, is it possible to add title to family of “head of household”?
01/29/2019 at 12:37 pm #483017Steven Zahm
Keymaster@ Wes
This is possible, but would require a PHP filter. Install the Code Snippets plugin. Add a new snippet with the following code:
add_filter( 'cn_family_relation_options', 'custom_cn_family_relation_options' ); function custom_cn_family_relation_options( $options ) { $options['head_of_household'] = 'Head of Household'; return $options; }
Save and activate the code snippet. after you do, this will appear as a new option.
Hope this helps!
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.