Notice: Trying to get property of non-object in C:\wordpress\wp-content\themes\smarty\inc\custom.php on line 155