WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. bstritesky
    Member
    Posted 3 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
            $counter++;
    
            // Set family member id
            $member_group->set($key_member_group);
    
            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!

    http://wordpress.org/extend/plugins/connections/

  2. shazahm1
    Member
    Plugin Author

    Posted 3 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

About this Topic