dongmou9260 2016-09-23 22:00
浏览 72

Wordpress Widgets要么没有显示,要么不完整

I have a wordpress theme that is having an issue with widgets. So far, I only have I sidebar with 3 widgets: "Search", "Recent Posts", and "Categories". However, the "Categories" widget only displays 1 category (there should be 4). And it says that 1 category has 2 posts, even though there are 4 registered to it.

I tried working around this by creating a custom menu with links to all four categories. But NONE of those links show up, in either the admin or non-admin views. Does anybody have any idea what is going on?

This is what is in my functions.php:

if ( function_exists('register_sidebar') )
register_sidebar(array(
  'name' => __('Sidebar 1', 'builder'),
  'id' => 'sidebar-1',
  'before_widget' => '',
  'after_widget' => '',
  'before_title' => '<h2>',
  'after_title' => '</h2>',
));

this is in my header.php file:

dynamic_sidebar( 'sidebar-1' );

Any ideas on how to fix this?

  • 写回答

0条回答 默认 最新

    报告相同问题?