是否有办法在WP admin->Appearance->Widgets页面中定位小部件区域?我已经按照正确的顺序排列了register\\u边栏函数,但它们似乎是随机显示的。
$sidebars = array (
\'sidebar-about\' => \'About\',
\'sidebar-wwd\' => \'What We Do\',
\'sidebar-news\' => \'News\',
\'sidebar-videos\' => \'Videos\',
\'sidebar-careers\' => \'Careers\',
\'sidebar-news\' => \'News\',
\'sidebar-posts\' => \'Shared\',
\'sidebar-press\' => \'Press Release\',
\'sidebar-casestudy\' => \'Case Study\',
);
foreach ( $sidebars as $id => $sidebar) {
register_sidebar(
array (
\'name\' => __( $sidebar, \'bonestheme\' ),
\'id\' => $id,
\'before_widget\' => \'<aside id="%1$s" class="widget %2$s">\',
\'after_widget\' => \'</aside>\',
\'before_title\' => \'<h3 class="widget-title">\',
\'after_title\' => \'</h3>\',
)
);
}
还有,对于像这样的自定义WP后端开发,有什么推荐的资源吗?