大家好我开发WordPress的主题我读了很多动态侧边栏,但他们没有工作,我的功能代码:WordPress的动态栏不行
<?php
if (function_exists('dynamic_sidebar'))
register_sidebar(array(
'before_widget' => '<div class="wcon">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
));
?>
和我的sidebar.php代码:
<?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar()) : ?>
<?php endif; ?>
,我是歌厅的sidebar.php使用此代码:
<?php get_sidebar(); ?>
这似乎是罚款,但我不能添加Wi dget它没有wordpress面板中的链接,也没有直接访问。