register_sidebar()和get_sidebar()如何一起工作?
免责声明:我是WP的新手。 我正在使用Starkers HTML5框架主题。在中,functions.php我看到以下代码: function starkers_widgets_init() { // Area 1, located at the top of the sidebar. register_sidebar( array( 'name' => __( 'Primary Widget Area', 'starkers' ), 'id' => 'primary-widget-area', 'description' => __( 'The primary widget area', 'starkers' ), 'before_widget' => '<li>', 'after_widget' => '</li>', 'before_title' => '<h3>', 'after_title' => '</h3>', …