Warning: Invalid argument supplied for foreach() in /Applications/MAMP/htdocs/europeiska/wp-content/themes/europeiska/get-theme-options.php on line 4
这是Wordpress检索此信息的正确代码,为什么PHP将此信息吐出?php继续给出以下内容
<?php
//allows the theme to get info from the theme options page
global $options;
foreach ($options as $value) {
if (get_option($value['id']) === FALSE) { $$value['id'] = $value['std']; }
else {
$$value['id'] = get_option($value['id']);
}
}
?>