Il faut certainement créer ce widget à la main. Ça pourrait ressembler à quelque chose comme ça dans le fichier functions.php du thème (à noter qu’il manque le code principal, il s’agit juste de l’habillage pour créer un nouveau widget) :
if ( function_exists(‘register_sidebar_widget’) ){
register_sidebar_widget(‘Categories et articles’, ‘wp_widget_categories_articles’);
}
function wp_widget_categories_articles() {
$before_widget = « <div class="sidebar_widget">« ;
$before_title = « <h3>« ;
$title = « Categories et articles »;
$after_title = « </h3>« ;
$after_widget = « </div>« ;
echo $before_widget;
echo $before_title . $title . $after_title;
echo ‘<ul>‘;
//Et ici on insère le code qui affiche les articles et leurs cat
echo ‘</ul>‘;
echo $after_widget;
}