• Resolved bv_it_guy

    (@bv_it_guy)


    I am new to having issues with our WordPress site. I am having an issue with the Geodirectory plugin. The full error messages on one of the pages is Warning: Invalid argument supplied for foreach() in /home/growwi8/public_html/wp-content/plugins/geodirectory/geodirectory-functions/taxonomy_functions.php on line 1771

    The actual code is…

    foreach ($a_terms as $pt => $t2) {
                foreach ($t2 as $term) {
                    $term_icon = get_tax_meta ($term->term_id, 'ct_cat_icon', false, $pt);
                    if ($term_icon) {
                        $term_icon_url = $term_icon["src"];
                    } else {
                        $term_icon_url = $default_icon_url;
                    }
                    $terms_icons[$term->term_id] = $term_icon_url;
                }
            }

    https://www.ads-software.com/plugins/geodirectory/

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘invalid argument supplied for foreach()’ is closed to new replies.