听起来你想add a new widget area (dynamic sidebar) to your Theme.
该过程包括三个部分:
在中注册动态侧栏functions.php, 使用register_sidebar():
function wpse121723_register_sidebars() {
    register_sidebar( array(
        \'name\' => \'Home right sidebar\',
        \'id\' => \'home_right_1\',
        \'before_widget\' => \'<div>\',
        \'after_widget\' => \'</div>\',
        \'before_title\' => \'<h2 class="rounded">\',
        \'after_title\' => \'</h2>\',
    ) );
}
add_action( \'widgets_init\', \'wpse121723_register_sidebars\' );
 这将向WordPress注册动态侧栏,其中显示其UI
Appearance -> Widgets 在管理中。这里最重要的部分是
id 参数,将在下一步中使用:
在适当的情况下,使用dynamic_sidebar( $id ):
<?php dymamic_sidebar( \'home_right_1\' ); ?>
 这实际上显示了模板中的动态侧栏。
通过以下方式填充动态侧栏Appearance -> Widgets 在管理中听起来你已经完成了第1步和第3步,但没有完成第2步。