Connections Business Directory
[resolved] [Plugin: Connections] Using Sample Template (2 posts)

  1. bstritesky
    Posted 5 years ago #

    I'm trying to use the included template from the "sample" folder, but am running into a few issues. Hoping someone can help diagnose the issue.

    Website link

    I ran into problems on line 31 with GetConnectionGroups. Somewhere along the line this must have changed to GetFamilyName, so I made that switch.

    But now, I'm seeing a different error:

    Warning: Invalid argument supplied for foreach() in /home/mysoph/public_html/wisconsinbaptist.org/wp-content/connections_templates/churches/template.php on line 31

    Warning: Invalid argument supplied for foreach() in /home/mysoph/public_html/wisconsinbaptist.org/wp-content/connections_templates/churches/template.php on line 139

    The actual code is here:
    Lines 31-43

    foreach ($entry->getFamilyName() as $key_member_group=>$value_member_group) {
            // Increment
            // Set family member id
            if ($counter > 1) {
                $member_list_first_names .= ", ".$member_group->getFirstName();
            } else {
                $member_list_first_names = $member_group->getFirstName();

    Line 139:
    foreach ($entry->getFamilyName() as $key_member_group=>$value_member_group) {

    Can someone help me figure out how to fix this? I know I'm not the only one trying to make the sample template work. I really want to get the maps feature working, like this site has: http://pascochamber.org/member-directory/

    Thanks in advance!


  2. shazahm1
    Plugin Author

    Posted 5 years ago #

    Can you please email me your template zipped and I'll look at it?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Connections Business Directory
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic