Notice: Trying to get property of non-object in bodycenter [closed]
The problem is this line: $cat_info = get_term_by(‘slug’, $cat, ‘product_cat’); You’re trying to get a category by slug, but $cat is undefined, so $cat_info is false, which means that this line: $l_name = trim($ctitle) != ” ? $ctitle : $cat_info->name; Is throwing the first error, because you can’t access ->name on false. And on this … Read more