Trying to use a variable to set image width
There are invalid PHP codes in your sample. Try to use valid PHP code like below. $imageWidth = get_option(‘devotional_imageWidth’,’100%’); $content = “<h2>Devotionally Images</h2>”; $content .= ‘<div style=”width:’ . $imageWidth. ‘;”>’; $content .= ‘<img src=”‘ .$show_file. ‘” alt=”Image Title Here”>’; $content .= “devotional by Devotional.ly”; $content .= ‘</div>’; return $content;