我正在构建一个主题,我需要调用主题选项,但当我在这里调用主题选项时,我确实会遇到诸如白色屏幕和500内部服务器错误之类的错误
在WP查询中(PHP新手)
<?query_posts (\'meta_key=post_views_count&orderby=meta_value_num&order=DESC&meta_value=get_option(mytheme_value);\');?>
也在我的前端表单中// ADD THE FORM INPUT TO $new_post ARRAY
$new_post = array(
\'post_title\' => $title,
\'post_content\' => $description,
\'post_category\' => array($_POST[\'cat\']), // Usable for custom taxonomies too
\'tags_input\' => array($tags),
\'post_status\' => \'get_option(mytheme_status)\',
以及如何调用函数中的选项。php