Correct php syntax to add an image in wp functions.php October 24, 2022 by Tarik Billa do use get_bloginfo() when working with strings; example: $capimg = get_bloginfo('template_url').'/imagename.jpg';