Illegal string offset error in wordpress theme options textarea
If get_option( ‘blogkori_theme_options’ ) doesn’t have a value you’re not going to get an array back, which means that $options[‘googanalytics’] isn’t valid. You’ll need to account for this possibility. You could do that by checking if googleanalytics is set, and setting it to a new variable, or an empty string if it’s not set: $options … Read more