我在WordPress中的自定义字段有问题。该字段在WP的customize部分显示得很好,但它只是不回显。
<p> <?php echo get_theme_mod(\'copyright_details\'); ?> </p>
功能。php代码:
function limus_customize_register( $wp_customize )
{
//copyright
$wp_customize->add_section(\'limus_copyright\', array(
\'title\' => __(\'Copyright Details\', \'limus\'),
\'description\' => \'Add/Edit copyright information\'
));
$wp_customize->add_setting(\'copyright_details\', array(
\'default\' => \'© 2000-2013 Limus Design Inc. All Rights Reserved.\'
));
$wp_customize->add_control(\'copyright_details\', array(
\'label\' => __(\'Copyright Information\', \'limus\'),
\'section\' => \'limus_copyright\',
\'setting\' => \'copyright_details\'
));
}
add_action( \'customize_register\', \'limus_customize_register\' );