WordPress 3.7.1简体中文版,wordpress侧边栏怎么调用的文章列表
我下的一个主题中的sidebar.php
dynamic_sidebar( 'sidebartop' ) 这个函数调用的最新文章列表?
sidebartop注册是在functions.php中,然后后台才有显示,如下:
register_sidebar(array(
'name' => 'SidebarTop',
'description' => 'Top sidebar',
'id' => 'sidebartop',
'before_widget' => "\n\t\t\t" . '
'after_widget' => "\n\t\t\t
'before_title' => "\n\t\t\t\t". '
',
'after_title' => "
\n" .''));
分享到: